Authfu

AI-native identity

Build it. Secure it.

Authfu is a hosted identity provider with passwordless magic links, two-factor authentication checked before email is sent, and standards-based OpenID Connect for the frameworks you already use.

Quickstarts

Choose your stack.

Each guide starts at app registration and ends at a working callback—without hiding the security-sensitive parts.

60-second setup

Auth.js v5, end to end.

Install the SDK, configure the provider, and expose the Auth.js route handler. Credentials are read from your environment.

Read the annotated guide →
auth.ts + route.ts
npm install next-auth@beta @authfu/next

// auth.ts
import NextAuth from "next-auth"
import { Authfu } from "@authfu/next"
export const { handlers, auth, signIn, signOut } = NextAuth({ providers: [Authfu()] })

// app/api/auth/[...nextauth]/route.ts
import { handlers } from "@/auth"
export const { GET, POST } = handlers

Building with an AI coding agent?

Point it at the canonical integration guide. Exact endpoints, claims, and security constraints included.

authfu.dev/llms.txt →