12/22/2022, 8:03 PM
Hello guys, using the EmailPassword recipe in a react/nodejs setup. After having revoked a session from specific user from the backend, the user seems blocked in his frontend ... Whenever he does a query to the backend (using axios interceptor), he gets stuck in a loop: 401 errors, try again to refresh, 401 error, and so on ... How can we handle this in the frontend ? If token is revoked, sign out ... I cannot even go on the signout page as there there is as well a infinite loop . (I revoked the session from that specific user because as an admin I can change accesses for a specific user, if it gets changed, then that specific user needs to have a new token ... or can we force the refresh of a token for a specific user from the backend ?)