Skip to main content

Interface: GetValidTokenOptions

Defined in: client.ts:41

Options for OAuthClient.getValidToken.

Properties

onRefresh

onRefresh: (updated) => void | Promise<void>

Defined in: client.ts:45

Called with the refreshed tokens so the caller can persist them.

Parameters

ParameterType
updatedTokenResponse

Returns

void | Promise<void>


refreshWindowMs?

optional refreshWindowMs?: number

Defined in: client.ts:43

Refresh if the access token expires within this window. Default: 2h.