Hono RPC + Better Auth
Secure API playground for Next.js
This demo uses Hono for typed APIs, Better Auth for email/password authentication, and Drizzle ORM with PostgreSQL to persist sessions.
Quick checklist
- 1. Create an account on the signup page.
- 2. Log in to create a session cookie.
- 3. Call the secure API using the form below.
Your session is validated via Hono middleware + Better Auth.
API Session
/api/meLoading session...
Secure Message
/api/secure-messageAuth middleware + Zod validation demo. Requires a valid session.
Test push notification
/api/notifications/send-testSend a test notification to the current account.
Support: UnavailableSubscription: UnknownLogin required