Skip to content
Back

Verify email otp with activate session

  • 1
  • Auth
  • Flutter
RC
21 Apr, 2025, 16:03

How can I verify an email otp with an active session? With updateVerification I get the error that the code is not valid. It only works with createSession. But this function requires that there is no active session. Otherwise I get the error “Creation of a session is prohibited when a session is active”. However, if I have the following use case that the user has to log in first and then it is checked whether the email has already been verified, the flow does not work.

TL;DR
Title: Verify email OTP with active session Developers are facing an issue with verifying email OTP using a session in Flutter. The error "Creation of a session is prohibited when a session is active" is encountered when trying to updateVerification. The suggested solution is to check if the email is verified before creating a session. This differs from a resolved similar issue in React.
Tessa
23 Apr, 2025, 16:57

Similar question that is resolved is here: https://appwrite.io/threads/1241775761703305236 let me know if this helps, although this is the same error with react, not flutter.

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