Skip to content

setApiToken

const setApiToken: (token) => void = client.setApiToken;

Defined in: src/ui/api.ts:45

Attach a portal token (entpt_…) as a Bearer credential on every request.

Attach a portal/viewer token as Authorization: Bearer … on every request (null clears it).

Parameter Type
token string | null

void