12
Sign in methods should all support adding user metadata
Source: supabase/supabase#29075 · opened by @elyobo
supabase.auth.signUp supports setting user metadata in the auth options but the sign in methods like supabase.auth.signInWithPassword or supabase.auth.signInWithIdToken do not. It would be useful to be able to set information as part of that sign in flow.
My use case is that I sign in a user with Google, then call an internal API via an edge function which performs additional validation and adds data to the user app metadata that is then processed in a custom auth hook for the claims. I'd like to clear the user's custom metadata when initially signing in so that the custom claim processing does not apply to any old metadata which is still present.
My use case is that I sign in a user with Google, then call an internal API via an edge function which performs additional validation and adds data to the user app metadata that is then processed in a custom auth hook for the claims. I'd like to clear the user's custom metadata when initially signing in so that the custom claim processing does not apply to any old metadata which is still present.
No pledges yet. Be the first to back this.
Comments
Similar requests
Ability To Reduce Cookie Size by Excluding Metadata
11 votes · 0 comments
Allow querying enabled login methods from Management API
2 votes · 0 comments
Support Sign In With Solana (SIWS)
17 votes · 0 comments
Upload file to bucket with metadata from client side
1 vote · 0 comments
Sign In via Functions
4 votes · 0 comments
No comments yet.