FeatureFuel
4

[Minor] auth.signInWithOtp improvement

Source: supabase/supabase#28373 · opened by @vyas-meet
This method generates a user on the fly (unless we prevent it by passing a boolean), or simply allows an existing user to sign in with a magic link.

We can also pass in metadata, but it is only relevant when a new user signs up. Otherwise, it goes into the void, not being used at all. This leads to inconsistencies and to deal with it, you need multiple DB calls like first check whether a user exists or not, and alike.

On a successful execution, it currently returns the following:


This is far from useful. It'd help if we at least get two parameters like:



These will help us process the user further if required, again considering the fact that the metadata is not handled if it's a login and not signup.

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