Back

Getting an error trying to log in.

  • 0
  • Auth
  • Apple
  • Cloud
cmcrawford2
1 Jun, 2024, 16:16

I'm working with React Native. I'm getting the error message "AppwriteException: Create of a session is prohibited when a session is active." I restarted everything, even turned off my phone and turned it back on. Still getting the same error message. `export async function signIn(email, password) { try { const session = await account.createEmailPasswordSession(email, password);

TypeScript
return session;

} catch (error) { throw new Error(error); } }`

TL;DR
Developers experiencing an error message in React Native: "AppwriteException: Create of a session is prohibited when a session is active." Restarting and rebooting the phone did not resolve the issue. The problem lies within the attempt to create a session while one is already active. To fix this, either verify the session status or handle session creation differently to prevent this conflict.
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