Comments (10)
Hey!
Thanks for the query. getSession
typically checks for a local token which might be out of sync with the recently returned token. If you're looking to obtain an up to date token with custom claims would recommend that you update app_metadata
in the Auth Hook and use getUser
to obtain a fresh access token.
Alternatively, you could wait for a refresh event to happen and the new access token should show the claims, providing they were saved to the users table.
Hope this helps
from gotrue.
from gotrue.
Hey @mr-menno,
Sorry, I spoke with a colleague earlier today who and realized that I misunderstood this query. The REST response indeed does not return the claim but the signed access token does. We'll likely add it in the REST response for the next release
Thanks for flagging this!
from gotrue.
would like to take this
from gotrue.
from gotrue.
@mr-menno , could you show a precise example of it? Currently, when I run
const { data2, error2 } = await supabase.auth.updateUser({
data: { hello: 'world5' }
})
data2
is undefined. Do you mean this?
from gotrue.
from gotrue.
okay, creating the PR
from gotrue.
Related Issues (20)
- Removing GOTRUE_JWT_DEFAULT_GROUP_NAME results in: role "" does not exist HOT 2
- `signUp` leaking existing user role HOT 1
- Internally inviteUserByEmail is not reading .data.custom_value when sending invitation email. HOT 1
- Using @supabase/ssr leads to endpoint issues HOT 1
- how to solve it? HOT 1
- OAuth redirecting to supabase dashboard HOT 2
- Cross-Origin Refreshing of `provider_token` is not allowed under OAuth HOT 3
- AuthApiError: Error sending confirmation mail HOT 11
- Account linking queries do a sequential scan on the users/identities table by default in managed Supabase HOT 3
- Users table index on recovery_token is not being used in queries HOT 1
- Apple Sign On: [AuthApiError: Bad ID token]
- Apple Sign On: [AuthApiError: Bad ID token] HOT 49
- Supabase auth for case sensitive emails HOT 3
- `token_revoked` with large-ish `raw_app_meta_data` HOT 8
- Github Access Token Invalid HOT 1
- RedirectTo Recovery Path Stripped When Using Localhost HOT 2
- Only the information requested by the scope is not imported. and not response phone_number data HOT 9
- Index for refresh_tokens on deletion by user_id not used properly HOT 2
- Using PKCE flow forces you to use your provider client secret when refreshing the provider token 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 gotrue.