UserRefreshClient

UserRefreshClient

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 clientId directly is @DEPRECATED.

clientSecret

@DEPRECATED. Provide a UserRefreshClientOptions object in the first parameter instead.

refreshToken

@DEPRECATED. Provide a UserRefreshClientOptions object in the first parameter instead.

eagerRefreshThresholdMillis

@DEPRECATED. Provide a UserRefreshClientOptions object in the first parameter instead.

forceRefreshOnFailure

@DEPRECATED. Provide a UserRefreshClientOptions object in the first parameter instead.

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.