RTKQuery Interceptors. How can I change method of the baseQuery to make POST the request with refresh token to update access token, instead of GET one. Solution below didn't help me. #4077
Replies: 1 comment 1 reply
-
baseQuery(
{
url: "/auth/refresh_token",
method: "POST",
body: JSON.stringify({ refresh_token: refreshToken }),
},
api,
extraOptions
); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
7R-Berehovskyi-Markiian
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Beta Was this translation helpful? Give feedback.
All reactions