| 56 | } |
| 57 | |
| 58 | export class AuthError extends Error { |
| 59 | constructor(message: string) { |
| 60 | super(message); |
| 61 | this.name = 'AuthError'; |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | async function apiRequest<T>(path: string, options: globalThis.RequestInit = {}): Promise<T> { |
| 66 | const response = await fetch(`${API_BASE}${path}`, { |
nothing calls this directly
no outgoing calls
no test coverage detected