Intro

<span data-node-type="text" data-node-id="KLtGCRJioAHs3Nr0skdda">Appwrite Functions Documentation</span>

Appwrite Functions Documentation

authenticationuser management

Demo

Test the create account and login, and email verification below

Actions

    <span data-node-type="text" data-node-id="iqnsIbxrvLbSNQj1B8O3Q">Appwrite Functions Documentation</span>

    Appwrite Functions Documentation

    FunctionDescriptionParametersReturns
    CheckUserChecks if a user is logged in and retrieves their account information.

    args.ProjectId(string)

    ctx(object)

    User account object if logged in, or error object if not logged in
    CreateAccountCreates a new user account in Appwrite.

    args.ProjectId(string)

    args.Email(string)

    args.password(string)

    ctx(object)

    Created account object
    CreateEmailSessionCreates an email session (logs in a user) using email and password.

    args.ProjectId(string)

    args.email(string)

    args.password(string)

    ctx(object)

    Session object
    SendPasswordRecoveryEmailInitiates the password recovery process by sending a recovery email.

    args.ProjectId(string)

    args.email(string)

    args.redirectUrl(string)

    ctx(object)

    Recovery object
    UpdatePasswordRecoveryCompletes the password recovery process by updating the user's password.

    args.ProjectId(string)

    args.userId(string)

    args.secret(string)

    args.newPassword(string)

    ctx(object)

    Response object indicating success or failure
    UpdateVerificationCompletes the email verification process.

    args.ProjectId(string)

    args.userId(string)

    args.secret(string)

    ctx(object)

    Response object indicating success or failure
    VerifyEmailSends an email verification to the user.

    args.ProjectId(string)

    args.redirectURL(string)

    ctx(object)

    Verification object
    <span data-node-type="text" data-node-id="lOXDgZOkbW2Vr1nQvo0Fz">Appwrite Functions Documentation</span>

    Appwrite Functions Documentation

    FunctionDescriptionParametersReturns
    CheckUserChecks if a user is logged in and retrieves their account information.

    args.ProjectId(string)

    ctx(object)

    User account object if logged in, or error object if not logged in
    CreateAccountCreates a new user account in Appwrite.

    args.ProjectId(string)

    args.Email(string)

    args.password(string)

    ctx(object)

    Created account object
    CreateEmailSessionCreates an email session (logs in a user) using email and password.

    args.ProjectId(string)

    args.email(string)

    args.password(string)

    ctx(object)

    Session object
    SendPasswordRecoveryEmailInitiates the password recovery process by sending a recovery email.

    args.ProjectId(string)

    args.email(string)

    args.redirectUrl(string)

    ctx(object)

    Recovery object
    UpdatePasswordRecoveryCompletes the password recovery process by updating the user's password.

    args.ProjectId(string)

    args.userId(string)

    args.secret(string)

    args.newPassword(string)

    ctx(object)

    Response object indicating success or failure
    UpdateVerificationCompletes the email verification process.

    args.ProjectId(string)

    args.userId(string)

    args.secret(string)

    ctx(object)

    Response object indicating success or failure
    VerifyEmailSends an email verification to the user.

    args.ProjectId(string)

    args.redirectURL(string)

    ctx(object)

    Verification object