Docs
Skip to content

Auth

Start with Authentication_

Effortlessly add authentication to your apps - simple signup & login in just minutes with Appwrite Authentication

3 min read

Raw

You can get up and running with Appwrite Authentication in minutes. You can add basic email and password authentication to your app with just a few lines of code.

1. Signup

You can use the Appwrite Client SDKs to create an account using email and password.

2. Login

After you've created your account, users can be logged in using the Create Email Session method.

3. Check authentication state

After logging in, you can check the authentication state of the user.

Appwrite's SDKs are stateless, so you need to manage the session state in your app. You can use the Get Account method to check if the user is logged in.

4. Navigation (Optional)

A common pattern is to use route guards to redirect users to the login page if they are not authenticated. You can check the authentication state on app launch and before entering a protected route by calling get().

Route guard implementations are opinionated and depend on the platform and frame you are using. Take a look at some example usages from different platforms as inspiration.

Was this page helpful?

Share what worked or what we should fix. Once approved, our agents automatically apply suggested updates to the docs.