Comments (8)
+1 for this. During development I've noticed some issues where if the Chrome engine is inactive for a little bit (say, your comp was on standby) but the tab is still open, I can only assume my JWT will have expired, as I can't query rows. After a little bit, it "fixes" itself, but this is a little annoying to handle as it should be handled as part of the library.
from gotrue-js.
It's beyond annoying to always be logged out of supabase apps, including the supabase dashboard.
from gotrue-js.
I think this is fixed now with v2. Congratulations supabase team 👏
from gotrue-js.
First-time contributor here, I'd be happy to take a look at this if it's up for grabs
from gotrue-js.
Having a look now, thinking of putting the checks in SupabaseClient in the _getAuthHeaders method as a starting point to check on client initialization then opening PRs to the GoTrue, PostgREST, Realtime, and Storage clients to check per request. Would that work @awalias?
from gotrue-js.
Yeah, second this
from gotrue-js.
I am still experiencing this issue with "@supabase/supabase-js": "^2.1.4"
- I have only tried locally with "supabase": "^1.24.0"
, not in production.
from gotrue-js.
If not fixed, with v2 there should be better behavior. We're not seeing problems on app.supabase.com or many other projects.
With supabase/postgrest-js#335 this should become even better. I'll close the issue now, do continue to comment if you have any further issues.
@cohlar Would you mind using the very latest v2 of the library. Do have in mind that if you're doing server side rendering there can be some confusing behavior that looks like this issue.
from gotrue-js.
Related Issues (20)
- "User with this email not found" error when using generateLink HOT 9
- Google OAuth doesn't work in Safari with next-js-auth-helpers HOT 1
- New, unsigned in user can not be deleted from supabase console. HOT 1
- [email protected] breaks client auth with edge functions HOT 15
- New error code is missing in error object
- user object warning logged, even when not touching `session.user` HOT 34
- Security and performance risk with `getUser` and `getSession` HOT 6
- Global supabase.auth.signOut() doesn't fire the "SIGNED_OUT" event for onAuthStateChange in other instances where a user is logged in HOT 5
- Current session lost when auth function call fails HOT 1
- Impossible to check null session without getSession warning HOT 9
- `getSession` should validate the session with the JWT_SECRET HOT 2
- getAuthenticatorAssuranceLevel() triggers "getSession() could be insecure" warnings HOT 3
- PKCE flow issue with other than supabase `code` query in URL
- Still having getSession warning whenever _saveSession is called HOT 7
- Session from session_id claim in JWT does not exist HOT 1
- Token has expired or is invalid or duplicate key value violates unique constraint "refresh_tokens_pkey" HOT 1
- NPM version tagged as latest still 2.62.2 HOT 1
- Client-side Supabase Auth Session/Access Token Expires Too Soon HOT 3
- No connection to my local hosted supbabase/auth instance on newer versions HOT 1
- `errorCode` is `undefined` because `data.error` is not processed 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 gotrue-js.