Back

manual sending of OTP

  • 0
  • Self Hosted
rohan
18 Sep, 2023, 00:02

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.
Drake
18 Sep, 2023, 16:51

As with anything custom, you can use an Appwrite Function and use any provider you want

rohan
19 Sep, 2023, 12:19

but how can get the number otp generated by appwrite?

safwan
19 Sep, 2023, 13:26

If you want to implement a custom OTP function, you can use this as something to start with:

  • Create a function that takes the userId as an input.
  • In this function, generate a random 6-digit number
  • Assign this 6-digit number to the user with user prefs
safwan
19 Sep, 2023, 13:27

Pretty straight-forward

rohan
19 Sep, 2023, 19:52

and then how to create session?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more