https://supertokens.com/ logo
#support-questions
Title
# support-questions
r

rp

09/27/2021, 9:31 AM
So the axios thing will call the refresh endpoint automatically when it gets 401. After a successful refresh, it will call the original API again and it should all work.. In case the refresh fails too (cause the refresh token has expired), then your axios will return a 401 error and you should redirect the user to the login screen (which should also happen on its own cause of the auth wrapper)