Repository navigation
fix: add shouldCreateUser field to sign in with magiclink - #199
Conversation
|
Decided to go with adding a |
thorwebdev
left a comment
There was a problem hiding this comment.
Just a small nit regarding typedoc comment.
| { email, phone, password, refreshToken, provider, oidc }: UserCredentials, | ||
| options: { | ||
| redirectTo?: string | ||
| shouldCreateUser?: boolean |
There was a problem hiding this comment.
Can you add this to the @param comments above for the docs.
There was a problem hiding this comment.
sure, yeah i think this would also help to make it clear that the shouldCreateUser flag can only be used for magiclinks / otp sign-ins
|
🎉 This PR is included in version 1.22.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
This is not working, unfortunately. The user gets added when typing an email into the login form even when the flag is activated. async function signIn(email: string) {
const { error } = await supabase.auth.signIn({
email,
shouldCreateUser: false
})
return { error }
}I've tried shouldCreateUser, create_user and noSignup as the flag, since it is unclear which one it's supposed to be. But none of them work. |
What kind of change does this PR introduce?
shouldCreateUserparam for thesignInmethod