new UserRefreshClient(optionsOrClientId, clientSecret, refreshToken, eagerRefreshThresholdMillis, forceRefreshOnFailure)
The User Refresh Token client.
Parameters:
Name | Type | Description |
---|---|---|
optionsOrClientId |
The User Refresh Token client options. Passing an |
|
clientSecret |
@DEPRECATED. Provide a |
|
refreshToken |
@DEPRECATED. Provide a |
|
eagerRefreshThresholdMillis |
@DEPRECATED. Provide a |
|
forceRefreshOnFailure |
@DEPRECATED. Provide a |
Methods
fromJSON(json)
Create a UserRefreshClient credentials instance using the given input options.
Parameters:
Name | Type | Description |
---|---|---|
json |
The input object. |
(async) refreshTokenNoCache(refreshToken, callback)
Refreshes the access token.
Parameters:
Name | Type | Description |
---|---|---|
refreshToken |
An ignored refreshToken.. |
|
callback |
Optional callback. |
(static) fromJSON(json)
Create a UserRefreshClient credentials instance using the given input options.
Parameters:
Name | Type | Description |
---|---|---|
json |
The input object. |