chore: build
ci-api / test (push) Successful in 21m6s
ci-web / test (push) Successful in 11m27s

This commit is contained in:
Xor290
2026-09-20 13:42:46 +02:00
parent e004b4edf7
commit 178652ef14
2 changed files with 53 additions and 18 deletions
-10
View File
@@ -1,13 +1,3 @@
// Central fetch wrapper: the access token is kept in memory only (never
// localStorage/sessionStorage, per the auth design), and a 401 triggers a
// single silent refresh-and-retry via the httpOnly refresh cookie.
//
// Admin and customer sessions are two entirely separate spaces (separate
// cookies, separate JWT audience -- see backend/internal/modules/auth) so
// each gets its own token store and its own refresh endpoint here too: a
// customer's expired access token must never be "refreshed" against the
// admin endpoint (it would just fail, since that reads the admin cookie).
export class ApiError extends Error {
status: number;
constructor(message: string, status: number) {