pageler
09/16/2022, 12:08 AMHandling of 401 status code and refreshing the session (steps (4) till (8)) happens automatically via our frontend SDK.
However I don't seem to be getting any automatic retry of the api call from step 7. It technically works by catching a 401 error on the api call itself and using attemptRefreshingSession()
, but it sounds like that should happen automaticallyrp_st
09/16/2022, 4:07 AMrp_st
09/16/2022, 4:07 AMpageler
09/16/2022, 4:15 AMrp_st
09/16/2022, 4:16 AMrp_st
09/16/2022, 4:17 AMnpm i git+https://github.com:supertokens/supertokens-website.get#xmlhttprequest-interception
rp_st
09/16/2022, 4:19 AMattemptRefreshingSession
. Just make your API call and it will do as the docs says - as long as you have called the session.init function somewhere before.rp_st
09/16/2022, 4:20 AMpageler
09/16/2022, 4:21 AMpageler
09/16/2022, 7:07 PM{"message":"try refresh token"}
, but nothing is happening and I don't see anything in the frontend logs attempting to react to the response.pageler
09/16/2022, 8:21 PM/auth
endpoint being handled by the supertokens middleware?rp_st
09/17/2022, 2:55 AMrp_st
09/17/2022, 2:55 AMrp_st
09/17/2022, 2:55 AM