Next Tokuzou Kit
Loading...

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. 1. Create an account on the signup page.
  2. 2. Log in to create a session cookie.
  3. 3. Call the secure API using the form below.

Your session is validated via Hono middleware + Better Auth.

API Session

/api/me

Loading session...

Secure Message

/api/secure-message

Auth middleware + Zod validation demo. Requires a valid session.

Test push notification

/api/notifications/send-test

Send a test notification to the current account.

Support: UnavailableSubscription: UnknownLogin required