Comments (2)
Can you provide a repro of this? My custom data shows up in both data.user and data.session.user. I'm using supabase-js 2.43.1, but based on release notes I'd think that has nothing to do with it.
const { data, error } = await supabase.auth.signInAnonymously({
options: {
data: {
email: 'stuff',
handle: 'the'
}
}
})
data.user {
id: 'd40fe803-0e0d-4714-8f9f-7d6035b18e17',
aud: 'authenticated',
role: 'authenticated',
email: '',
phone: '',
last_sign_in_at: '2024-05-20T20:04:15.633767296Z',
app_metadata: {},
user_metadata: { email: 'stuff', handle: 'the' },
identities: [],
created_at: '2024-05-20T20:04:15.628343Z',
updated_at: '2024-05-20T20:04:15.637134Z',
is_anonymous: true
}
data.session.user {
id: 'd40fe803-0e0d-4714-8f9f-7d6035b18e17',
aud: 'authenticated',
role: 'authenticated',
email: '',
phone: '',
last_sign_in_at: '2024-05-20T20:04:15.633767296Z',
app_metadata: {},
user_metadata: { email: 'stuff', handle: 'the' },
identities: [],
created_at: '2024-05-20T20:04:15.628343Z',
updated_at: '2024-05-20T20:04:15.637134Z',
is_anonymous: true
}
from supabase.
Thanks for your help @j4w8n! The ticket can be closed now. It seems like the metadata was not picking up when being passed into sign in, but when I tried static data similar to your example it worked.
from supabase.
Related Issues (20)
- auth.uid() always returns null in local dev DB due to old(?) implementation compared to cloud HOT 1
- Unconfirmed signup user when again signup up password not getting overriden , might be a Security vulnerability HOT 4
- Cannot display images on Supabase storage HOT 1
- updateUser on Anonymous Sign in Automatically Verifies Email
- Row Level Security policy query error with camel Case in supabase studio self hosted
- Custom Domains don't work with Edge Functions HOT 2
- Cursor jumps to the end of the input field in "Ask Supabase AI" HOT 1
- Failed to send a request to the Edge Function HOT 1
- Can't figure out how to configure CORS to allow directly file uploads using presigned url. HOT 2
- Svelte Docs HOT 2
- Cannot signin using github to supabase dashboard
- error: AuthRetryableFetchError: fetch failed HOT 1
- Type for Composite type is incorrect
- Type for Composite types with array field is incorrect
- HNSW indexes seem to not work HOT 1
- CREATE RLS policy fails after timeout with no error
- redirectTo using signInWithPassword doesn't work.
- Switch to other project
- unable to create a trigger bcz the quickstart templates keeps on loading
- Optimize visual management panel logic
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.