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.