import { Link } from 'react-router'; const AuthFlowDemoCard = () => (
This demo showcases the following authentication features:
Login
POST to /api/auth/login with
username & password
Register
POST to /api/auth/register with full
user details
Session
JWT access & refresh tokens stored in an HTTP-only cookie
Protected Routes
This dashboard requires authentication via{' '}
requireAuth()
Token Refresh
POST to /api/auth/refresh with the
refresh token in an X-Refresh-Token{' '}
header
Account Management
PATCH /api/auth/username,{' '}
/email,{' '}
/password,{' '}
/profile, and DELETE{' '}
/account — see{' '}
Account Settings