Library API
All library API routes except the public catalog require a valid Supabase access token in theAuthorization: Bearer <token> header.
Authentication
Librarians sign in through the shared staff login page. The login POSTs credentials to/api/auth/login, which sets sb-access-token and sb-refresh-token cookies and returns a redirect URL. The cookies are then sent automatically with subsequent requests.
Routes
POST /api/auth/login
Signs in a staff member or librarian.
Request body
sb-access-token and sb-refresh-token cookies.
