Skip to content

Can't figure out how to switch from access_token to refresh_token in fetchBaseQuery 馃槥 #4180

Answered by phryneas
AndreaBarghigiani asked this question in Q&A
Discussion options

You must be logged in to vote


Your baseQueryWithReauth calls the other baseQuery, which then sets the Authorization header.

Maybe add something like if (!headers.has("Authorization")) before setting it?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@AndreaBarghigiani
Comment options

@AndreaBarghigiani
Comment options

@phryneas
Comment options

@AndreaBarghigiani
Comment options

Answer selected by AndreaBarghigiani
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants