Comments (6)
A quick update, supabase support got back to me the following message:
You can fix this by:
- Manually ignore 403s returned and just clear the local session stored on the browser.
- Upgrade to supabase-js v2.43.1 which contains the changes to ignore the 403s returned.
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...
from supabase-js.
Hey! Just got absolutely the same error. Have deployed to Vercel and now catch the bug (on both production and localhost).
Well, it seems like I have successfully logged out on the backend of Supabase, but the session hasn't been removed on the frontend.
const user = useSupabaseUser();
const supabase = useSupabaseClient();
if (user.value) {
console.log(user.value) // logs a User
const { error } = await supabase.auth.signOut();
console.log('error', error); // AuthApiError: Session from session_id claim in JWT does not exist
}
![image](https://private-user-images.githubusercontent.com/52397003/333801460-878b2721-e0a7-4014-a3e1-2a64782ac28d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxMTc0OTMsIm5iZiI6MTcxOTExNzE5MywicGF0aCI6Ii81MjM5NzAwMy8zMzM4MDE0NjAtODc4YjI3MjEtZTBhNy00MDE0LWEzZTEtMmE2NDc4MmFjMjhkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIzVDA0MzMxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY2Zjk0MmFhOTMxMDkzYjRiYTQ2MTQ2NDMwMjc4YWU4OTkwMTA4MWExMmQ3YmZhNDI1NTkzZWRkZDI3YmYxZjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.8Ul0AmTtu4DpbC3Hlv69vOPGEXu9TZ1F0ACFQ533Gz4)
System information
- Nuxt 3 + official Supabase module ("@nuxtjs/supabase": "^1.2.2")
- Node.js 20
- Browser: Chrome Desktop
- OS: MacOS
from supabase-js.
Same issue to me on https://avatarify-ai.com/
Any solution or workaround?
from supabase-js.
I'm getting the same exact error message using supabase-swift, so the issue doesn't appear to be isolated to this library.
from supabase-js.
I'm experiencing a similar issue with edge function authorization.
from supabase-js.
I solved upgrading the dependencies
from supabase-js.
Related Issues (20)
- SVELTEKIT: Streaming queries causes error. HOT 4
- Range Error: Invalid array length when I am using count exact and lte method
- FK values are `undefined` with inconsistent behaviour
- Nextjs Compile Error With SupabaseJS ( Not Nextjs Error )
- New check for a custom Authorization header is case sensitive. Headers are case insensitive
- JWT token expiary
- createServerClient causes too many /token requests HOT 3
- Unable to move objects between buckets HOT 1
- SignInAnonymously function type error HOT 1
- Cookies not being set after loginWIthEmailAndPassword
- storage.from.list returning incorrect & incomplete data
- PostgrestClient is not a constructor error in Edge Functions HOT 4
- bad_jwt when auth.getUser HOT 1
- auth.getUser returns an error: Auth Session Missing v2.43.2 HOT 19
- React Native IOS Session Refresh HOT 1
- Long running realtime channel results in steady growing memory
- Multiple order on table ignores 2nd order HOT 1
- Expected behavior with defaultToNull set to true in bulk inserts
- { "code": 400, "error_code": "validation_failed", "msg": "Unsupported logout scope \"window\"" } HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from supabase-js.