Coder Social home page Coder Social logo

Comments (9)

th-m avatar th-m commented on June 22, 2024 2

I actually just dealt with this today. It was a heck of a pain to debug. Turns out it is mostly harmless to the user, and I am keeping it as a feature for now.

from supabase-js.

kiwicopple avatar kiwicopple commented on June 22, 2024

a sudden page refresh occurs

Hey @ykdojo - are you seeing this behaviour in your Vue app?

from supabase-js.

xavidram avatar xavidram commented on June 22, 2024

The reason I want to catch the response from the authorization is to set the reactive state. And the login page has a route guard to prevent authenticated users to access the login page. When the call returns from the 3rd party login page, it returns to the login page, which does not have a user loaded into the reactive state. My work around for now is to check the localstorage for the session and shove it into the state at that point and time if it gets back to the login page.

from supabase-js.

ykdojo avatar ykdojo commented on June 22, 2024

@kiwicopple when I log in using an OAuth provider (GitHub) on our Vue to-do example app, I do see the login page being shown for a split second after the redirect - but I'm not sure if it's the same thing as what @xavidram described here.

@xavidram - I tried reproducing your bug, but it seems like you've made some changes to your codebase since you filed this issue here - could you tell me which commit I can reproduce this bug on?

from supabase-js.

xavidram avatar xavidram commented on June 22, 2024

@ykdojo The current commit should produce the same issue. On login, the provider redirects me to the Github page, then redirects me back.

The route guard doesn't seem to protect the route on return from the provider callback. So I need to sit and tinker with it some more. I am going to close this issue. I need to find a workaround for collecting the authenticated payload from the providers, and do some handling on my end.

from supabase-js.

seenickcode avatar seenickcode commented on June 22, 2024

@xavidram do you remember any solution to this?

from supabase-js.

xavidram avatar xavidram commented on June 22, 2024

No. I never got it to work so I just built my own auth server for the project.

from supabase-js.

seenickcode avatar seenickcode commented on June 22, 2024

Ok thanks.

from supabase-js.

Pfurr avatar Pfurr commented on June 22, 2024

some issue (only) with supabase.auth.signInWithOAuth({provider}) ---> i m working with next js and PKCE

from supabase-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.