UNAUTHENTICATED
Please sign in again.
HTTP status: 401
Why this happens
Your session expired or the request didn't carry valid credentials.
How to recover
Sign in again. The dashboard's HTTP client refreshes session cookies automatically; if you're calling the API directly, refresh your access token.
Branching on this code
TypeScript
import { ApiError } from "@firecase/sdk";
try {
await firecase.someCall();
} catch (e) {
if (e instanceof ApiError && e.code === "UNAUTHENTICATED") {
// recover here
}
throw e;
}