Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Conversation

thorwebdev
Copy link
Contributor

@kangmingtay I've refactored the types and simplified the api and client a bit.

With the types like this, type is optional when providing phone but is required when providing email 👍

@thorwebdev thorwebdev requested a review from kangmingtay March 19, 2022 14:24
Comment on lines +201 to +202
export type MobileOTPType = 'sms'
export type EmailOTPType = 'signup' | 'invite' | 'magiclink' | 'recover' | 'email_change'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kangmingtay can you double check that this separation is correct?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm seems like it should be 'recovery' instead of 'recover' (https://github.com/supabase/gotrue/blob/master/api/verify.go#L24)

Comment on lines +201 to +202
export type MobileOTPType = 'sms'
export type EmailOTPType = 'signup' | 'invite' | 'magiclink' | 'recover' | 'email_change'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm seems like it should be 'recovery' instead of 'recover' (https://github.com/supabase/gotrue/blob/master/api/verify.go#L24)

@kangmingtay kangmingtay merged commit 9a3d1ae into km/use-otp-endpoint Mar 20, 2022
@github-actions
Copy link
Contributor

🎉 This PR is included in version 1.22.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

@thorwebdev thorwebdev deleted the km/use-otp-endpoint-thor-mod branch May 9, 2022 02:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants