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
- {"code": 1008, "message": "Invalid Origi...
Nothing has changed in my application or console settings so I'm curious as to what I need to do to fix this. I already have the client registered so I'm not en...
- React Native/iOS platform integrations h...
Anyone else have this issue where platform identifiers have been lost/wiped and no option/field available to update them in the console?
- Issue with Appwrite Read Request Limit b...
Hi Team, My coding terminal connected to the Appwrite CLI blew through my Projects Read request limit with in a day! and thats a large limit! I'm not sure how...