C#: Resend an OTP

Resends a confirmation email or a one-time password (OTP) by SMS.

Examples

Resend a sign-up confirmation email

await supabase.Auth.Resend(
    new ResendParameters(ResendType.SignUp, email, null, new ResendOptions(captchaToken: null, emailRedirectTo: "https://example.com/welcome")));

Resend a phone OTP

await supabase.Auth.Resend(new ResendParameters(ResendType.Sms, null, "+13334445555", null));

Resend with the PKCE flow

var state = await supabase.Auth.Resend(
    new ResendParameters(ResendType.SignUp, email, null, null),
    OAuthFlowType.PKCE);

var verifier = state.PKCEVerifier;