Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(auth): add resend method #190

Merged
merged 1 commit into from
Dec 14, 2023
Merged

feat(auth): add resend method #190

merged 1 commit into from
Dec 14, 2023

Conversation

grdsdev
Copy link
Collaborator

@grdsdev grdsdev commented Dec 14, 2023

What kind of change does this PR introduce?

Close #108

What is the current behavior?

User isn't able to resend email and mobile OTP.

What is the new behavior?

Adds 2 methods:

func resend(
    email: String,
    type: ResendEmailType,
    emailRedirectTo: URL? = nil,
    captchaToken: String? = nil
) async throws

and

func resend(
    phone: String,
    type: ResendMobileType,
    captchaToken: String? = nil
) async throws -> ResendMobileResponse

Additional context

Add any other context or screenshots.

@grdsdev grdsdev self-assigned this Dec 14, 2023
@grdsdev grdsdev enabled auto-merge (squash) December 14, 2023 22:30
@grdsdev grdsdev enabled auto-merge (squash) December 14, 2023 22:30
@grdsdev grdsdev merged commit ec07c95 into main Dec 14, 2023
3 checks passed
@grdsdev grdsdev deleted the feat/resend-auth-method branch December 14, 2023 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add in ability to call supabase.auth.resend()
1 participant