Back

How can i catch the generated OTP when authenticating with phone

  • 0
  • Functions
  • Accounts
Chris
22 Dec, 2023, 08:47

Hello team, i it possible to catch the OTP generated by appwrite engine when authenticating with phone.

TL;DR
Yes, it is possible to catch the OTP generated by Appwrite engine when authenticating with a phone. You can use the createPhoneVerification endpoint for the server SDKs to generate a token object that contains the secret.
Christy Jacob
22 Dec, 2023, 10:20

yes, you can. Using the createPhoneVerification endpoint for the server sdks https://appwrite.io/docs/references/cloud/server-nodejs/account#createPhoneVerification

This will return a Token Object containing the secret

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