-
-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error to Logout - Inconsistent 403 Forbidden #1170
Comments
Same issue to me on https://avatarify-ai.com/ |
I'm getting the same exact error message using supabase-swift, so the issue doesn't appear to be isolated to this library. |
I'm experiencing a similar issue with edge function authorization. |
I solved upgrading the dependencies |
A quick update, supabase support got back to me the following message:
I try to repeat the error, but it happens intermittently, in the end I ended up updating to the latest version ^2.43.4 ⚡️ "clear the local session" I don't know how I would do this since the supabase session is stored in cookies secure and http , which cannot be modified or deleted due to the browser's security policies... |
Bug report
Describe the bug
I'm realizing that this happens after a new deployment, perhaps, I'm already logged in to the platform in production, I can recover the session normally but when I click to log out, it returns 403 AuthApiError: Session from session_id claim in JWT does not exist, localhost this does not happen.
Since I already have the local session, I tried to handle this 403 to manually pass refresh_token to supabase.auth.refreshSession({ refresh_token }) and somehow reset everything so that my clients don't get stuck in this situation, but it returns 400 bad request, but I check in the request the refresh_token is present in the payload.
To Reproduce
The only specific scenario observed was that I performed a deployment before, my front-end is hosted on Vercel.
Expected behavior
Logout
Screenshots
System information
The text was updated successfully, but these errors were encountered: