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).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
token |
string | null |
Returns
Section titled “Returns”void