Class: OAuth
OAuth Helper Class
Constructors
constructor
• new OAuth()
Methods
authenticate
▸ Static authenticate(code): Promise<AuthenticateResponse>
Authenticate to obtain a token and refresh token using the code from the authorize method
Parameters
| Name | Type | Description |
|---|---|---|
code | string | code obtained from the authorize method |
Returns
Promise<AuthenticateResponse>
authorize
▸ Static authorize(): Promise<AuthenticateResponse>
Start the authorization process
Returns
Promise<AuthenticateResponse>
▸ Static authorize(manual): Promise<AuthorizeResponse>
Parameters
| Name | Type |
|---|---|
manual | true |
Returns
Promise<AuthorizeResponse>
refreshToken
▸ Static refreshToken(refreshToken): Promise<RefreshResponse>
Parameters
| Name | Type |
|---|---|
refreshToken | string |
Returns
Promise<RefreshResponse>