signInWithOTP()
will signup the user instead. To restrict this behavior, you can set shouldCreateUser
to `false``.SITE_URL
.{{ .Token }}
instead of {{ .ConfirmationURL }}
.One of `email` or `phone` must be provided.
One of `email` or `phone` must be provided.
Only for email signups. The redirect URL embedded in the email link. Must be a configured redirect URL for your Supabase instance.
The channel to use for sending messages. Only for phone signups.
Whether to create the user if they don't already exist. Defaults to true.
A custom data object to store additional user metadata.
undefined
try await supabase.auth.signInWithOTP(
email: "example@email.com",
redirectTo: URL(string: "my-app-scheme://")!
)
try await supabase.auth.signInWithOTP(phone: "+13334445555")
try await supabase.auth.signInWithOTP(
phone: "+13334445555",
channel: "whatsapp"
)