Giter VIP home page Giter VIP logo

Comments (8)

gitbugr avatar gitbugr commented on July 17, 2024 7

+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.

vbylen avatar vbylen commented on July 17, 2024 1

It's beyond annoying to always be logged out of supabase apps, including the supabase dashboard.

from gotrue-js.

vbylen avatar vbylen commented on July 17, 2024 1

I think this is fixed now with v2. Congratulations supabase team 👏

from gotrue-js.

velocity23 avatar velocity23 commented on July 17, 2024

First-time contributor here, I'd be happy to take a look at this if it's up for grabs

from gotrue-js.

velocity23 avatar velocity23 commented on July 17, 2024

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.

PH4NTOMiki avatar PH4NTOMiki commented on July 17, 2024

Yeah, second this

from gotrue-js.

cohlar avatar cohlar commented on July 17, 2024

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.

hf avatar hf commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.