Skip to content

Next.js 14 refresh token rotation with http only cookies and external backend (Hono.js)

Notifications You must be signed in to change notification settings

vitalikda/nextjs-refresh-token

Repository files navigation

MVP: access and refresh token in Nextjs app router (RSC)

Built with

  • Hono.js as a backend
  • Next.js as a frontend (incl server side rendering)
  • fetcher with refresh token handler
  • Tanstack Query with client side redirect
  • apiCatcher with server side redirect

Getting Started

cp .env.example .env
pnpm install
pnpm dev

Open http://localhost:3000 and click "Sign In" button.

About

Next.js 14 refresh token rotation with http only cookies and external backend (Hono.js)

Resources

Stars

Watchers

Forks