---
title: "Auth"
description: "Add secure authentication to your app with email, OAuth, SMS, magic URLs, MFA, teams, presences, and session management."
canonical: "https://appwrite.io/products/auth"
---

# Authentication that ships with your product

Give users a secure sign-in experience without building auth infrastructure. Appwrite Auth supports the methods your users expect, team collaboration signals, and the controls your team needs.

[Start building](https://appwrite.io/sign-up?redirect=%2F)[View docs](https://appwrite.io/docs/products/auth)

Acme

Welcome back

Sign in to your account

Email

paige@acme.io

Send magic link

Verification code

482 913

Check your inbox

WOPDHQ

Team workspace

3 online

OAuth providers

40+

Sign-in methods

7

Memberships & roles

Multi-Tenancy

Two-factor auth

MFA

Team collaboration

Presences

## OAuth 2 and social login

Enable 30+ social providers from the Console Social providers tab. Users sign up in one click with GitHub, Google, Apple, and the identity providers your audience already uses.

[OAuth2 docs](https://appwrite.io/docs/products/auth/oauth2)

Social providers

Enable OAuth 2 sign-in for external accounts.

Google

GitHub

Apple

30+ providers

## Passwordless login

Turn on Magic URL, Email OTP, and Phone SMS from Auth settings. Ship secure sign-in without storing or resetting passwords.

[Magic URL docs](https://appwrite.io/docs/products/auth/magic-url)

Sign in

Choose a method

Magic URL

Email link sign-in

Email OTP

6-digit code

Phone SMS

Text verification

6-digit code

482913

Auth settings

Magic URL

Email OTP

Phone SMS

await account.createMagicURLToken(

'paige@acme.io')

## Multi-tenancy with teams and roles

Model each customer or workspace as a team with memberships, invites, and roles. Scope databases, storage, and other resources to the right tenant from the Console Users and Teams tabs, without building custom RBAC.

[Multi-tenancy docs](https://appwrite.io/docs/products/auth/multi-tenancy)

Acme Engineering

3 members · Owner access

W

Walter O'Brien

walter@acme.io

Owner

P

Paige Dineen

paige@acme.io

Developer

H

Happy Quinn

happy@acme.io

Member

documents.reports

team:acme/readuser:walter/updaterole:developer/read

## SSR authentication

Verify sessions from Next.js, Nuxt, SvelteKit, and other server-rendered apps. Issue session cookies from your backend with dedicated guides and tutorials.

[SSR docs](https://appwrite.io/docs/products/auth/server-side-rendering)

Next.jsNuxtSvelteKit

middleware.ts

SSR

```
import { createSessionClient } from '@appwrite.io/ssr'

const client = createSessionClient(request)
const user = await client.account.get()
```

Session verified

Set-Cookie: a\_session\_…

## Security policies you control

Fine-tune Auth from the Console Policies and Settings tabs. Set session length and limits, password strength and history, email signup rules, membership privacy, and which auth methods are enabled for your project.

[Security docs](https://appwrite.io/docs/products/auth/security)

Session length

30 days

Sessions limit

10 active sessions

Session alerts

Enabled

Invalidate sessions

Enabled

Password policies

Strong presetMin 12 charsHistory: 54/7 compliant

Email policies

Block disposable emails

Block aliased emails

Block free providers

Email/PasswordMagic URLPhoneJWTAnonymous

## Multi-factor authentication

Add TOTP authenticator apps and recovery codes for sensitive accounts. Require MFA when users update credentials or access protected actions.

[MFA docs](https://appwrite.io/docs/products/auth/mfa)

Authenticator app

Acme

paige@acme.io

482 190

GitHub

paige

913 024

Enter verification code

482190

MFA enabled

Recovery codes

a8f2-k9m1p3q7-r2n8x5y1-z4w6h7j3-l0c9

Require MFA for sensitive actions

Extra verification before account changes

## Presence for team collaboration

Show who is online, on the same page, or typing in team chat. Presences sync status and metadata over Realtime so you can add collaboration cues to shared docs, dashboards, and support tools without building sockets.

[Presences docs](https://appwrite.io/docs/products/auth/presences)

Shared doc

Q4 launch plan

Finalize hero copy

Review pricing section

HQ

PD

TC

3 online

Happy Quinn is typing in team chat

Paige viewing /teams/acme/roadmap

## Tools built for developers and agents

API-first by design. Use the Console, Realtime, SDKs, CLI, Terraform, MCP, and agent skills on the same project.

Developer and agent experience

A typical integration in TypeScript.

TypeScript

```
import { Client, Account } from 'appwrite';
const client = new Client()  .setEndpoint('https://<REGION>.cloud.appwrite.io/v1')  .setProject('<PROJECT_ID>');
const account = new Account(client);
const session = await account.createEmailPasswordSession({  email: 'paige@example.com',  password: 'password',});
console.log(session.userId);
```

[Everything is an APIREST, GraphQL, and SDKs for every service. Automate and integrate without console-only workflows.](https://appwrite.io/docs/apis/rest)[ConsoleManage every service in your project from a unified Console. Optimized keyboard access and a Command Center keep you moving fast.⌘KCommand Center](https://appwrite.io/docs/tooling/command-center)[RealtimeSubscribe to live events and react to changes as they happen.accountusers.\*.create](https://appwrite.io/docs/apis/realtime)[MCPConnect AI agents to your Appwrite project, APIs, and docs through one remote MCP server.appwrite https://mcp.appwrite.io](https://appwrite.io/docs/tooling/ai/mcp-servers)[TerraformManage Appwrite infrastructure as code with the official provider.terraform plan terraform apply](https://appwrite.io/docs/tooling/terraform/resources/auth)[Agent skillsGive AI agents SDK-accurate knowledge of Appwrite services and APIs.npx skills add appwrite/skills](https://appwrite.io/docs/tooling/ai/skills)[SDKsClient and server SDKs for the platforms your team already uses. 15 official SDKs available across client and server runtimes.](https://appwrite.io/docs/sdks)[CLIDeploy resources, manage projects, and generate typed SDKs from your terminal.appwrite login appwrite deploy](https://appwrite.io/docs/tooling/command-line/installation)

## FAQ

### 

Yes. Appwrite Auth is API-first, so you keep full control of the UI in your app and call the Account SDK for sign-up, login, sessions, and MFA. Quick starts cover React, Next.js, Vue, SvelteKit, Flutter, and other platforms. For server-rendered apps, verify sessions on your backend and issue HTTP-only cookies using the SSR guides.

[Quick start](https://appwrite.io/docs/products/auth/quick-start)[SSR authentication](https://appwrite.io/docs/products/auth/server-side-rendering)[Checking auth status](https://appwrite.io/docs/products/auth/checking-auth-status)

### 

Yes. Appwrite supports OAuth 2.0 with 30+ providers, including GitHub, Google, Apple, Discord, and Microsoft. Enable providers in the Console under Auth > Social providers, add your OAuth credentials and redirect URI, then start the flow from the Account SDK. Each OAuth sign-in creates an identity linked to the user account, so one person can connect multiple providers without duplicate accounts.

[OAuth2](https://appwrite.io/docs/products/auth/oauth2)[Identities](https://appwrite.io/docs/products/auth/identities)

### 

Enable Magic URL, Email OTP, and Phone SMS from Auth settings in the Console. Magic URL sends a one-click sign-in link to the user's email. Email OTP delivers a time-limited code they enter in your app. Phone SMS verifies users through text messages without a password. You can offer passwordless methods alongside email and password, or disable password login entirely for a password-free experience.

[Magic URL](https://appwrite.io/docs/products/auth/magic-url)[Email OTP](https://appwrite.io/docs/products/auth/email-otp)[Phone SMS](https://appwrite.io/docs/products/auth/phone-sms)

### 

Create a team for each customer, organization, or workspace in your app. Invite members by email, assign roles, and scope databases, storage buckets, functions, and other resources with team-based permissions. Teams give you tenant isolation without building custom RBAC, and membership privacy settings let you control whether member lists are visible to other users.

[Multi-tenancy](https://appwrite.io/docs/products/auth/multi-tenancy)[Teams](https://appwrite.io/docs/products/auth/teams)[Team invites](https://appwrite.io/docs/products/auth/team-invites)

### 

Enable MFA in Auth settings, then let users enroll an authenticator app (TOTP) and download recovery codes. MFA adds a second step after the primary sign-in method. Require it for sensitive actions such as updating credentials or accessing protected resources. Users who lose their device can sign in with a recovery code instead of the TOTP.

[MFA](https://appwrite.io/docs/products/auth/mfa)[Security](https://appwrite.io/docs/products/auth/security)

### 

Yes. Turn on Passkey in Auth settings and pick your app's domain. Users register a passkey after signing up, then sign in with Face ID, Touch ID, a fingerprint, or the device PIN, without an email or password. The same passkey works on your website and in your Android and iOS apps, and a passkey session also satisfies MFA.

[Passkeys](https://appwrite.io/docs/products/auth/passkeys)

### 

Yes. Connect your project to an LDAP directory, such as Active Directory or OpenLDAP, under Settings > Identity servers, and users sign in with their directory username and password. The directory checks the password, so Appwrite never stores it. You can limit sign-in to one group, and each account keeps its name, email, and phone number in sync with the directory.

[LDAP login](https://appwrite.io/docs/products/auth/ldap)

### 

Yes. Import users through the Console or the Users API with the Server SDK. For email and password accounts, create users with plain-text passwords or import existing password hashes when your provider uses a supported algorithm: Argon2, bcrypt, scrypt, scrypt-modified (Firebase), SHA, MD5, or PHPass. New passwords are stored with Argon2\. Hashes imported from other algorithms are upgraded to Argon2 after the user's first successful sign-in.

[Manage users](https://appwrite.io/docs/products/auth/users)[Password hashing](https://appwrite.io/docs/advanced/security/authentication#password-hashing)

### 

Appwrite hashes passwords with Argon2, including salting and adjustable work factors. From Auth Policies and Settings, set minimum length, character requirements, password history, dictionary checks, and rules that block personal data in passwords. Email policies can block disposable, aliased, or free-provider addresses at sign-up. Session settings control duration, limits per user, and cookie behavior for web apps.

[Email and password login](https://appwrite.io/docs/products/auth/email-password)[Email policies](https://appwrite.io/docs/products/auth/email-policies)[Security](https://appwrite.io/docs/products/auth/security)

### 

Presences show who is active right now: online, away, typing, or viewing a page or channel. Upsert records with status and metadata, then subscribe over Realtime for live updates. Use them for team rosters, shared doc viewers, chat typing indicators, and support queue availability.

[Presences](https://appwrite.io/docs/products/auth/presences)[Realtime](https://appwrite.io/docs/apis/realtime)

### 

Auth is included in every Appwrite deployment. Self-hosted installations use the same Auth APIs, SDKs, OAuth providers, policies, and session behavior as Appwrite Cloud. Configure auth methods, password rules, and security policies from the Console the same way.

[Auth overview](https://appwrite.io/docs/products/auth)[Self-hosting](https://appwrite.io/docs/advanced/self-hosting)

## Start building with Auth

Create a project and add authentication in minutes with our quick start guides.

[Start building](https://appwrite.io/sign-up?redirect=%2F)[View pricing](https://appwrite.io/pricing)

## Explore Appwrite

Modular backend services that share the same project, permissions model, and console.

[AuthEmail, OAuth, SMS, MFA, teams, and sessions.](https://appwrite.io/products/auth)

[DatabasesManaged PostgreSQL, TablesDB, DocumentsDB, VectorsDB, MySQL.](https://appwrite.io/products/databases)

[PostgreSQLManaged PostgreSQL with pooling, replicas, and PITR.](https://appwrite.io/products/postgres)

[StorageUpload, transform, and deliver files on CDN.](https://appwrite.io/products/storage)

[FunctionsAPIs, cron jobs, and event handlers at scale.](https://appwrite.io/products/functions)

[MessagingEmail, SMS, and push with topics and targets.](https://appwrite.io/products/messaging)

[RealtimeLive events, channels, and presence.](https://appwrite.io/products/realtime)

[SitesStatic, SSR, and CSR deploys from Git.](https://appwrite.io/products/sites)

[DomainsSearch, buy, transfer, and manage domains.](https://appwrite.io/domains)

[FirewallProject rules to deny, rate limit, and redirect traffic.](https://appwrite.io/products/firewall)

### 

### 

### 

### 

### 

### 

[](https://github.com/appwrite)[](https://x.com/appwrite)[](https://www.linkedin.com/company/appwrite/)[](https://www.instagram.com/appwrite.io/)[](https://appwrite.io/discord)[](https://apwr.dev/dailydev)

[SOC 2 Type II Certified](https://appwrite.io/docs/advanced/security)

© 2026 Appwrite
