new OAuth2ClientManager(optionsopt)
Construct an OAuth2ClientManager, which handles creating and getting OAuth2Clients
Parameters:
Name | Type | Attributes | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Properties
|
Methods
createClient(options) → {OAuth2Client|Error}
Factory method that will create a OAuth2Client.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
Returns:
- Type
- OAuth2Client | Error
getClient(clientIdopt) → {OAuth2Client|Error}
Method that will return the client asked for, or the only one present in this manager.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
clientId |
<optional> |
Returns:
- Type
- OAuth2Client | Error