Recipes
Hono — first integration
← All recipes · First time? Set up your app (60 seconds — keys + redirect URI)
A Hono backend that signs a user in via Authaz Sign-In, exposes a protected JSON endpoint, and lets them log out. Single-tenant, password provider, no roles.
1. What you'll build#
A Hono API where GET / is public, GET /me returns the signed-in user, and GET /protected requires a valid Authaz session. Runs on Node or Bun.
2. Application setup#
In the Authaz Dashboard:
- New application → name it, choose Single-tenant.
- Note the Client ID and Client Secret.
- Under Auth Flow Configuration, add
http://localhost:3000/auth/callbackas an allowed callback URL.