Hi, is there any way to custom integrate sending otp to the users
TL;DR
User is asking for assistance on how to implement manual sending of OTP (one-time password) and create session. They also want to know how to get the generated OTP number from Appwrite. The solution suggested is to create a function that takes the `userId` as input, generate a random 6-digit number, and assign it to the user with user preferences. To integrate sending OTP, it is recommended to use an Appwrite Function and any desired provider.As with anything custom, you can use an Appwrite Function and use any provider you want
but how can get the number otp generated by appwrite?
If you want to implement a custom OTP function, you can use this as something to start with:
- Create a function that takes the
userIdas an input. - In this function, generate a random 6-digit number
- Assign this 6-digit number to the user with user prefs
Pretty straight-forward
and then how to create session?
Recommended threads
- Realtime api and labels as permission
in my tables i set labels as permission and real-time capabilities stopped working. Before when i was having "any" role everything was working. Note: user have...
- how to access the value of account statu...
- Redirect from clicking team invite link ...
Hi all! Pretty new to app development in general so this might be something more generic than appwrite, but I've found (after reading the docs for the Teams API...