Comments (9)
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.
a sudden page refresh occurs
Hey @ykdojo - are you seeing this behaviour in your Vue app?
from supabase-js.
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.
@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.
@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.
@xavidram do you remember any solution to this?
from supabase-js.
No. I never got it to work so I just built my own auth server for the project.
from supabase-js.
Ok thanks.
from supabase-js.
some issue (only) with supabase.auth.signInWithOAuth({provider}) ---> i m working with next js and PKCE
from supabase-js.
Related Issues (20)
- Error on exchangeCodeForSession when setting the token key for password recovery HOT 1
- Add warning to docs that supabase-js doesn't support fire-and-forget
- TypeScript: Property 'email' does not exist on type 'SignInWithPasswordCredentials' HOT 6
- Add note about typescript support for fetching
- Should throw an error if special characters are being used in the name of the file
- MFA Verify is throwing internal server error: 500 despite correct code HOT 3
- signInWithOtp make wrong redirect URL HOT 2
- Large Auth Cookie Split Into 2 Causing Realtime Failures, etc HOT 2
- `supabase.createClient` not reading in access token from URL and initialising session object when using Google or Github sign in. HOT 1
- Selecting a schema on createClient does not work HOT 2
- supabase.auth.getSession is slow HOT 2
- Order on a foreign table HOT 6
- Return format is not consistent across queries with the same select parameters HOT 1
- Version v2.39.2 and above break types HOT 4
- Bug/Proposal: try catch not working on supabase api functions HOT 1
- Deploy Svelte and Supabase to Google cloud and supabase is unable to get the environment variables HOT 1
- Twitter OAuth stopped working HOT 1
- supabase stop --no-backup doesn't delete backup
- `GoTrueClient` Memory Leak HOT 1
- docs: clarify if client supports retry HOT 1
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.