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

VerifyOTP(string phone, string token) does not support email OTP verification #41

Closed
bhemala opened this issue Oct 31, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@bhemala
Copy link

bhemala commented Oct 31, 2022

Feature request

VerifyOTP supports only phone OTP verification unline supabase js library.

Is your feature request related to a problem? Please describe.

I would like to send OTP by email with:
Supabase.Client.Instance.Auth.SendMagicLink("[email protected]")

I set .Token to the Magic link instead of .ConfirmationURL. This way user gets verification token.
<p>Verification code: <code>{{ .Token }}</code></p>

I need verify this token by VerifyOTP() the same way as in supabase js library
await supabase.auth.verifyOTP({ email, token, type: 'magiclink' })

Describe the solution you'd like

Implement compatible interface with supabase js library.

Describe alternatives you've considered

Additional context

@bhemala bhemala added the enhancement New feature or request label Oct 31, 2022
@acupofjose
Copy link
Contributor

@bhemala thanks for the issue - this is available in v2.4.7!

@bhemala
Copy link
Author

bhemala commented Nov 1, 2022

perfect! thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants