live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/me-client


@orangecheck/me-client / setBearerToken

Function: setBearerToken()

function setBearerToken(token: string | null): void;

Defined in: me-client/src/transport.ts:29

Cross-domain integrators: store the JWT returned by signInWithOc() here so subsequent SDK calls can authenticate via Authorization header. Same-origin integrators don't need this (the cookie rides).

Parameters

ParameterType
tokenstring | null

Returns

void