#[Solved] Auth Doubts

1 messages · Page 1 of 1 (latest)

frosty dragon
#

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!!

whole parrot
#

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.

frosty dragon
whole parrot
frosty dragon
#

[Solved] Auth Doubts