Skip to content

Conversation

@Dastaan2k
Copy link
Owner

https://supabase.com/docs/guides/auth/auth-email-passwordless?queryGroups=language&language=dart#with-magic-link
Following the above link, verifying token hash from magic link doesn't require email or phone in request body (only token hash and type is required in the js example) (It also throws error if email is passed in request body).

Previous state of the code threw assertion error if neither email nor phone is present in verifyOtp call preventing users to verify token hash without passing email or phone in request body.

Hence have added a condition that will ignore the first email and phone assertion if token hash is populated

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.

3 participants