FeatureFuel
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.

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests