This might be a strange scenario but I want to know if it's possible I can implement user auth through both the ways in my app: by sending email OTP and by using email id+password combo
Ie, a user can either choose to be sent an OTP on his email or just type in his email id and password while signing in.
I hope that makes sense๐ญ๐ญ
sure why not? Whats the issue are you facing? You can do something like this -
- Show email field > Send OTP Button >
account.createEmailTokenRefer - https://appwrite.io/docs/products/auth/email-otp - Show email field & Password field >
account.createEmailPasswordSessionRefer - https://appwrite.io/docs/products/auth/email-password#login
Recommended threads
- Function issue
Hi,idk whats wrong with my function but i made some changes to the env var and made sure they saved then i redeployed it,but then after it redeeployed it asked ...
- Function issue
Hi,idk whats wrong with my function but i made some changes to the env var and made sure they saved then i redeployed it,but then after it redeeployed it asked ...
- general_route_not_found - Auth Guide
If youโve just added a subdomain to your project, verified your DNS records, and confirmed your SSL certificate is working, but you're still hitting a `general_...