FeatureFuel
2

There should be an idempotent equivalent of `createUser`

Source: supabase/supabase#16720 · opened by @icopp
For example, this could be a method like auth.admin.ensureUser that

• takes the same arguments as createUser
• returns a matching user if there is a single matching user
• updates the matching user to include additional params if there's a single matching user (e.g. add email or phone number if they don't correspond to any other users)
• returns an error if there's more than one matching user (such as email and phone corresponding to separate users)

This would make life much easier for those of us who have to deal with programmatically created users, since it would allow replacing current slower and more complicated code with a single call.

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