---
title: "Human auth: 14 methods, 17 OAuth providers"
description: "Passkeys, TOTP, magic link, SSO and 14 sign-in methods with 17 OAuth providers for the humans behind agents, plus 11 framework adapters."
canonical: https://theauth.dev/human-auth/
lastmod: 2026-10-31
---

Human auth

# Sign-in for the humans who own agents

Each method is a plugin you opt into. Use passkeys, OAuth, magic links or SSO for people, and keep agent identity separate.

[Browse auth methods](https://docs.theauth.dev/auth) [Quickstart](https://docs.theauth.dev/quickstart)

Methods

## All 14 methods

1. 01Email and passwordTS: PBKDF2-SHA256, optional HIBP check
2. 02Username and passwordHandles instead of email
3. 03Magic linkSigned, single-use email link
4. 04Email OTPSix-digit code by email
5. 05Phone SMSCode through any SMS provider
6. 06Passkey / WebAuthnTouch ID, Face ID, security keys
7. 07TOTP 2FAAny RFC 6238 authenticator, backup codes
8. 08AnonymousSessions without an account
9. 09Google One TapGoogle sign-in prompt
10. 10Sign In With EthereumEIP-4361 wallet sign-in
11. 11Device authorizationFor TVs and CLIs
12. 12CaptchaBot checks on auth endpoints
13. 13Password resetToken-based reset flow
14. 14Session freshnessRequire a recent sign-in for sensitive actions

OAuth

## 17 providers, plus generic OIDC

Every provider is configured the same way through the oauth() plugin. The ids below are the first-class providers in the source. Apple is the exception to the pattern: it needs a signed ES256 JWT client secret that you generate yourself and pass in.

- Appleapple
- Atlassianatlassian
- Discorddiscord
- Dropboxdropbox
- Figmafigma
- GitHubgithub
- GitLabgitlab
- Googlegoogle
- LinkedInlinkedin
- Microsoftmicrosoft
- Notionnotion
- Redditreddit
- Slackslack
- Spotifyspotify
- Twitchtwitch
- Twitter/Xtwitter
- Zoomzoom
- Any other OIDC providergenericOIDC()

Details

## Passkeys, TOTP, SSO, organizations

- **Passkeys.** WebAuthn with Touch ID, Face ID, Windows Hello or hardware keys, through the passkey() plugin. [Passkey docs](https://docs.theauth.dev/auth/passkey).
- **TOTP.** The twoFactor() plugin adds QR enrollment, six-digit codes and backup codes. [Two-factor docs](https://docs.theauth.dev/auth/two-factor).
- **Magic link.** Signed, single-use links with configurable expiry. [Magic link docs](https://docs.theauth.dev/auth/magic-link).
- **SSO basics.** SAML 2.0 and OIDC connections, such as Okta or Azure AD, with just-in-time provisioning. [SSO docs](https://docs.theauth.dev/auth/sso).
- **Organizations.** Create orgs, invite members, assign roles, cap membership. [Organization docs](https://docs.theauth.dev/auth/organizations).
- **Passwords.** TypeScript hashes with PBKDF2-SHA256. Go uses Argon2id.

Signing in without a browser

### Approve the CLI from your phone

terminal@glinr/theauth-cli

```sh
$ theauth login --server https://app.example.com/api/theauth
Open https://app.example.com/device and enter the code: WDJB-MJHT
(or open https://app.example.com/device?user_code=WDJB-MJHT)
waiting for approval (polling the token endpoint)
Logged in to https://app.example.com/api/theauth as user-123.
$ theauth whoami
ada@example.com (https://app.example.com/api/theauth)
```

/device

Nothing to approve yet

Signed in as ada@example.com

/device

Sign in theauth-cli?

Code WDJB-MJHT. Only approve if you started this in your own terminal.

ApproveDeny

/device

Approved

Return to your terminal. The code works once.

1. Run theauth login. The CLI asks the server for a device code.
2. It prints a short code and opens the verification page.
3. You approve on any device where you are signed in. The CLI polls meanwhile.
4. The server returns a token. The CLI stores it with mode 0600.
5. Later commands such as whoami reuse it.

This is the CLI login in the TypeScript SDK (RFC 8628 device authorization). The terminal text is from the CLI source; the code, host and email are examples. The Go server's device grant is a separate open pull request.

auth.ts

```ts
import { createTheAuth } from "@glinr/theauth";
import { emailPassword, passkey } from "@glinr/theauth/auth";

const auth = await createTheAuth({
  database: { provider: "postgres", url: process.env.DATABASE_URL },
  plugins: [emailPassword(), passkey()],
});
```

Frameworks

## Adapters

Core databases: SQLite, PostgreSQL, MySQL and Cloudflare D1. Client packages exist for React, Vue, Svelte, Expo and Electron.

- Next.js `@glinr/theauth-nextjs`
- SvelteKit `@glinr/theauth-sveltekit`
- Nuxt `@glinr/theauth-nuxt`
- Hono `@glinr/theauth-hono`
- Express `@glinr/theauth-express`
- Fastify `@glinr/theauth-fastify`
- Astro `@glinr/theauth-astro`
- NestJS `@glinr/theauth-nestjs`
- SolidStart `@glinr/theauth-solidstart`
- TanStack Start `@glinr/theauth-tanstack`
- Prisma `@glinr/theauth-prisma`

- [Adapter docs](https://docs.theauth.dev/adapters)
- [Agent identity](https://theauth.dev/agent-identity/)
- [Enterprise](https://theauth.dev/enterprise/)
- [Human auth on the homepage](https://theauth.dev/#human)

[Passkeys and device flow](https://theauth.dev/agent-oauth/) [Open source auth for TypeScript](https://theauth.dev/get-started/) [Clerk alternative](https://theauth.dev/compare/clerk/)
