Hello, i'm having issues with my interceptor :
when making a post request to the refresh token route it's sending the access token as header while it should use the refresh token.
Here's the context :
- the interceptor will add access token to every jwt protected routes
- if access token is expired, the api will send a 498 code error
- when we receive a 498 we will make a post request to the refresh route with refresh token as authorization headers and access token in the body
- the refresh route will return an object containing the new access token
- sending the initial request again
=> the api route works fine with the correct headers and body ( getting a new access token as expected)