Comments (3)
Hi! Is there a specific reason why calling auth.getUser()
in your protected route to see if they are logged in and then kicking them out is not an option? It seems like the guide you linked does exactly that in the last step. afaik there won't be a user before a code exchange is done, which looks like that is the case in the attached picture because I only see the code challenge.
from supabase.
We're also experiencing a similar problem. On our server, we're having the following check:
const authenticatedUser = await this.supabaseAdminClient.auth.getUser(jwtToken)
if (!authenticatedUser.data.user) {
this.logger.debug('No user is associated with the access token!')
return false
}
However, sometimes, even though we are using a valid jwt, await this.supabaseAdminClient.auth.getUser(jwtToken)
is returning null.
"@supabase/supabase-js": "^2.39.8"
from supabase.
Think this is the same issue I reported here:
#22719
Logging in twice gets it to set - somoeone suggested the set method is only setting one cookie at a time...
from supabase.
Related Issues (20)
- Anonymous Sign In Custom Metadata not working HOT 2
- I hope there can be a lightweight version, just a storage bucket HOT 1
- Supabase dashboard down HOT 2
- issue in backup of supabae storage data HOT 1
- There are unnecessary options in the .env.sample for self-hosting HOT 3
- Change Email in Nexjts app directory SSR PKCE flow not working
- Performing UPDATE as authenticated user does not work despite returning success HOT 1
- Cannot test out SQL queries with `service_role` from SQL Editor HOT 1
- Can't verify my email to login HOT 2
- delete plz
- outdated router recommendation in the doc https://supabase.com/partners/integrations/clerk
- Planned migration failed causing production app to stop HOT 5
- Tenant Error HOT 2
- Auth Rate Limits page shows outdated value for email
- Api now returning error. Something changed overnight on supabase end HOT 4
- Dashboard UI: can't set a row item to null if the column has foreign key relationship (column is nullable)
- How to close the web interface, I just want to use the api to operate, which is relatively safe HOT 1
- How to close the web interface, I just want to use the api to operate, which is relatively safe HOT 3
- Escaped quotes are being added around the email sender name HOT 3
- Cannot Mint Custom JWT in Python HOT 16
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.