OAuth2Client
Constructors
new OAuth2Client()
new OAuth2Client(
options
:OAuth2ClientOptions
):OAuth2Client
Parameters
• options: OAuth2ClientOptions
Returns
Methods
getAccessTokenFromClientCredentials()
getAccessTokenFromClientCredentials():
Promise
<AccessTokenResponse
|AccessTokenErrorResponse
>
Returns
Promise
<AccessTokenResponse
| AccessTokenErrorResponse
>
getAccessTokenFromCode()
getAccessTokenFromCode(
code
:string
):Promise
<AccessTokenResponse
|AccessTokenErrorResponse
>
Parameters
• code: string
Returns
Promise
<AccessTokenResponse
| AccessTokenErrorResponse
>
getAuthorizationRedirectResponse()
getAuthorizationRedirectResponse():
Promise
<undefined
|AuthorizationRedirectResponse
|AuthorizationRedirectErrorResponse
>
Returns
Promise
<undefined
| AuthorizationRedirectResponse
| AuthorizationRedirectErrorResponse
>
getAuthorizationUrl()
getAuthorizationUrl():
Promise
<string
>
Returns
Promise
<string
>