createEmailPasswordSession¶
Allow the user to login into their account by providing a valid email and password combination. This route will create a new session for the user.
A user is limited to 10 active sessions at a time by default. Learn more about session limits.
Usage Example¶
extends Node
func _ready():
# You can skip setup if you have .env
Appwrite.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
Appwrite.set_project('<YOUR_PROJECT_ID>') # Your project ID
var result = await Appwrite.account.create_email_password_session(
'email@example.com',
'password'
)
if result is AppwriteException:
push_error(result.message)
if result is AppwriteSession:
print(result.to_dict())