Back

how ro resend otp?

  • 0
  • General
  • Flutter
  • Auth
  • REST API
sam
23 Jan, 2025, 04:59

As the title says, I'm using email otp to authenticate users, I use createSession to send the first otp, but if the user didn't receive the otp how to send it again? I tried using the same method but then I get the error you can't have multiple active sessions. Is there a method for this?

TL;DR
Developer is struggling with how to resend an email OTP for user authentication after the initial attempt fails. Attempting to use the createSession method again results in an error about multiple active sessions. Looking for a solution to resend the OTP. Solution: Instead of creating a new session, developers can add a resendOTP method within the same session to send the OTP again without conflicting with the active sessions.
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