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)
- error in guidance on setting up email template URL's for Next.js project HOT 1
- [Supabase.com ONLY] Duplicate key value violates unique constraint updating non-unique column
- Cannot delete an organization HOT 10
- TS type generation does not give output in terminal, has remains in output file after running the script HOT 1
- Getting error `operator does not exist: text &@~ text` after updating supabase CLI HOT 5
- Self-hosted Supabase does not take into account changed base path, always serves on root path HOT 1
- Supabase IDE does not let me update the field from the relationship (double clic), but it does accept the change when editing the row manually. HOT 1
- apikey Query Parameter Causes Parsing Error in Local Supabase API, Works Fine in Cloud Version HOT 13
- unable to see edge functions in local development studio + when doing supabase login it only goes to supabase url and not to self hosted version HOT 2
- SvelteKit: Connect to your project guide HOT 2
- possible bug in dashboard view of database metadata HOT 1
- Local API: GET projects relation does not exist HOT 2
- cron schema not available in seed.sql (pg_cron) HOT 2
- Handle prompt when generating types HOT 7
- Supabase Studio self-hosted messed up table style
- The file in html format is loaded. The type is incorrect. HOT 1
- Extension tables showing in Public view (Local Dev)
- Docs page overflows on mobile
- Asynchronous Cleanup Functions Not Completing in Local Supabase Environment
- Unable to create users from dashboard HOT 3
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.