Quickstarts
End-to-end tutorials: from zero to an authenticated user, with complete, runnable code.
- Add authentication to a Next.js app Add authentication to your [Next.js](https://nextjs.org) app with AuthPI — using the AuthPI SDK or any OIDC client library.
- Add authentication to a Hono app Add authentication to your [Hono](https://hono.dev) app with AuthPI — using the AuthPI SDK or any OIDC client library.
- Server-side auth with the TypeScript SDK Authenticate users in a Node.js backend with @authpi/idp — authorization-code flow with PKCE, callback handling, session refresh, and per-organization authorization, step by step.
- Add authentication to a Cloudflare Worker Protect a Cloudflare Workers API with AuthPI access tokens — JWT verification with jose, scope-based authorization, local testing, and deploy.
- Give an AI agent an identity in 10 minutes Create an agent identity, add a secret verifier, mint a five-minute OAuth token via client_credentials, and validate it in your API with jose.