Hi team, I'm trying to make signUp and signIn screens using Auth but i keep getting the error "account.createEmailSession is not a function" but it does creates a user in my appwrite Auth and the other error i get is " AppwriteException: Creation of a session is prohibited when a session is active". Im using react native SDK. Please help!!
It’s account.createEmailPasswordSession() now
And the “Creation of a session is prohibited when a session is active” means you’re already logged in and you’re trying to log in again.
You should call account.get() to check if there’s an active session, and only complete the login process if there isn’t.
Recommended threads
- I am currently seeking opportunities as ...
Hey! 👋 I'm a Shopify guy. Been building stores for 8+ years. Still haven't lost my mind. Barely. I make stores that don't suck fast, smooth, and actually built...
- Misunderstanding Appwrite Messages for P...
I think I'm having a misunderstanding of how to implement appwrite messages for push notification. I've already setup firebase credentials in appwrite, but I'...
- updateSession isn't working for google o...
I'm building an app using react native with expo. An image of my code is attached. The code is a useEffect that i have in a context that wraps the root layout ...