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!!
#[Solved] Auth Doubts
1 messages · Page 1 of 1 (latest)
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.
on it on it
thank you so much sir!! it worked
Great! If your issue has been solved, you can mark this post as closed by adding "[SOLVED]" to the beginning of the title
[Solved] Auth Doubts