
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.createEmailToken
Refer - https://appwrite.io/docs/products/auth/email-otp - Show email field & Password field >
account.createEmailPasswordSession
Refer - https://appwrite.io/docs/products/auth/email-password#login
Recommended threads
- Error getting session: AppwriteException...
I get this error `Error getting session: AppwriteException: User (role: guests) missing scope (account)` when running in prod. As soon as I try running my app o...
- PR Review and Issue Assign?
I am not familiar with how things work here. I know that Issue have to be assigned before solving problem, It is for not wasting contributors time but I like t...
- OTP Session template not working and is ...
Okay so it has been a long while with the issue with OTP Session template, and currently I tried self-hosting and found out that it is linked with Verification ...
