SupabaseS
Supabase3y ago
Mick

Client signInWithIdToken method + user meta-data

Context: Using Expo AppleAuthentication + Supabase’s Apple SSO authentication.

The JS client’s auth.signInWithIdToken method does not allow for any raw user meta data to be added to the user record.

Is this by design or has it simply not been added yet? If so, is there a clean way to add meta data?

I’m experiencing issues with Apple rejecting builds, saying the user’s name isn’t being set despite the information being requested by Expo’s AppleAuthentication package. This violates their guidelines on UX.

I’m currently updating the user’s raw meta data after signing in if the user’s given/family name is present in the response but that’s not preferable since it introduces issues if a user is ever deleted. Apple only provides that information the first time a user ever signs in using their Apple ID.
Was this page helpful?