Resends an existing signup confirmation email, email change email, SMS OTP or phone change OTP.
signInWithOtp()
method again.resetPasswordForEmail()
method again.emailRedirectTo
option.const \{ error \} = await supabase.auth.resend(\{
type: 'signup',
email: '[email protected]',
options: \{
emailRedirectTo: 'https://example.com/welcome'
\}
\})
const \{ error \} = await supabase.auth.resend(\{
type: 'sms',
phone: '1234567890'
\})
const \{ error \} = await supabase.auth.resend(\{
type: 'email_change',
email: '[email protected]'
\})
const \{ error \} = await supabase.auth.resend(\{
type: 'phone_change',
phone: '1234567890'
\})