• new CognitoVerifier(params)
| Name | Type | Description |
|---|---|---|
region |
string |
|
userPoolId |
string |
• Private keysUrl: string
The url where the public key for the Cognito User Pool can be found This is supposed to be a getter
• Private publicKeys: null | PublicKey[] = null
• Private region: string
• Private userPoolId: string
▸ Private fetchKeys(): Promise<PublicKey[]>
Promise<PublicKey[]>
▸ Private getPublicKeys(): Promise<PublicKey[]>
Promise<PublicKey[]>
▸ verify(token): Promise<boolean>
Use this function to verify the Cognito token
| Name | Type |
|---|---|
token |
string |
Promise<boolean>