"use client"; import React from "react"; import { useAuth } from "../hooks/useAuth"; export default function AuthDemoPage() { const { user, authenticated, loading, logout } = useAuth(); if (loading) { return (
Loading authentication status...
GET
/api/auth/callback?token=YOUR_SUPABASE_TOKEN&refresh_token=REFRESH_TOKEN&redirect_to=/profile
POST /api/auth/callback
{`{"access_token": "token", "refresh_token": "refresh"}`}
Visit the{" "} login page {" "} to enter your Supabase tokens manually.
GET /api/auth/check
- Check auth status
POST /api/auth/callback
- Login with tokens
POST /api/auth/refresh
- Refresh access token
POST /api/auth/logout
- Logout and clear
cookies
GET /api/user
- Get user information
GET /profile
- User profile page
GET /chat
- Chat interface (if implemented)
GET /settings
- Settings page (if implemented)
📚 See AUTH_SYSTEM.md
for detailed documentation