Constructors
constructor
- new OAuth(__namedParameters: object): OAuth
-
Parameters
-
__namedParameters: object
-
cognitoClientId: string
-
-
scopes: string[]
Methods
handleAuthResponse
- handleAuthResponse(currentUrl?: string): Promise<object>
-
Parameters
-
Optional currentUrl: string
Returns Promise<object>
oauthSignIn
- oauthSignIn(responseType?: string, domain: string, redirectSignIn: string, clientId: string, provider?: CognitoHostedUIIdentityProvider | string, customState?: string): void
-
Parameters
-
Default value responseType: string = "code"
-
domain: string
-
redirectSignIn: string
-
clientId: string
-
Default value provider: CognitoHostedUIIdentityProvider | string = CognitoHostedUIIdentityProvider.Cognito
-
Optional customState: string
Returns void