Function: refreshGrant()
refreshGrant(
config,refreshToken,fetchFn?,nowEpochSeconds?):Promise<TokenSet>
Exchange a refresh token for a fresh TokenSet (widget host steady state). Public clients send no secret; the rotated refresh_token (when the issuer rotates) replaces the old one in the returned set.
Parameters
config
refreshToken
string
fetchFn?
{(input, init?): Promise<Response>; (input, init?): Promise<Response>; (input, init?): Promise<Response>; }
nowEpochSeconds?
() => number
Returns
Promise<TokenSet>
Remarks
Most integrations should use createUpbond instead.