Hi @rp_st , in SuperTokens session verification and refresh flow, when an access token is expired the verifySession function sends a 401 to frontend and frontend sdk is taking care of refreshing the session and retrying the original request. Is there a solution for the same when we use backend alone?
r
rp_st
05/03/2023, 11:15 AM
Hey @yvstrishul you could try and use the supertokens-website SDK on the backend and provide it a custom window and storage handler which writes to ur storage on the backend. You could then use it to add axios interceptor to your axios instance and maybe then it will work fine.
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).