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
| Parameter | Type |
|---|---|
updated | TokenResponse |
Returns
void | Promise<void>
refreshWindowMs?
optionalrefreshWindowMs?:number
Defined in: client.ts:43
Refresh if the access token expires within this window. Default: 2h.