Package
google-auth-libraryConstructors
(constructor)(clientId, clientSecret, refreshToken)
constructor(clientId?: string, clientSecret?: string, refreshToken?: string);User Refresh Token credentials.
| Name | Description |
| clientId |
string
The authentication client ID. |
| clientSecret |
string
The authentication client secret. |
| refreshToken |
string
The authentication refresh token. |
(constructor)(options)
constructor(options: UserRefreshClientOptions);Constructs a new instance of the UserRefreshClient class
| Name | Description |
| options |
UserRefreshClientOptions
|
(constructor)(clientId, clientSecret, refreshToken)
constructor(clientId?: string, clientSecret?: string, refreshToken?: string);Constructs a new instance of the UserRefreshClient class
| Name | Description |
| clientId |
string
|
| clientSecret |
string
|
| refreshToken |
string
|
Properties
_refreshToken
_refreshToken?: string | null;Methods
fromJSON(json)
fromJSON(json: JWTInput): void;Create a UserRefreshClient credentials instance using the given input options.
| Name | Description |
| json |
JWTInput
The input object. |
| Type | Description |
| void |
fromStream(inputStream)
fromStream(inputStream: stream.Readable): Promise<void>;Create a UserRefreshClient credentials instance using the given input stream.
| Name | Description |
| inputStream |
stream.Readable
The input stream. |
| Type | Description |
| Promise<void> |
fromStream(inputStream, callback)
fromStream(inputStream: stream.Readable, callback: (err?: Error) => void): void;| Name | Description |
| inputStream |
stream.Readable
|
| callback |
(err?: Error) => void
|
| Type | Description |
| void |
refreshTokenNoCache(refreshToken)
protected refreshTokenNoCache(refreshToken?: string | null): Promise<GetTokenResponse>;Refreshes the access token.
| Name | Description |
| refreshToken |
string | null
An ignored refreshToken.. |
| Type | Description |
| Promise<GetTokenResponse> |