Skip to content

Latest commit

 

History

History
122 lines (67 loc) · 2.35 KB

File metadata and controls

122 lines (67 loc) · 2.35 KB

CognitoVerifier

Properties

Methods

Constructor

new CognitoVerifier(params)

Parameters

Name Type Description
region string
userPoolId string

Defined in

cognito.ts:37

Properties

keysUrl

Private keysUrl: string

The url where the public key for the Cognito User Pool can be found This is supposed to be a getter

Defined in

cognito.ts:35


publicKeys

Private publicKeys: null | PublicKey[] = null

Defined in

cognito.ts:30


region

Private region: string

Defined in

cognito.ts:29


userPoolId

Private userPoolId: string

Defined in

cognito.ts:28

Methods

fetchKeys

Private fetchKeys(): Promise<PublicKey[]>

Returns

Promise<PublicKey[]>

Defined in

cognito.ts:52


getPublicKeys

Private getPublicKeys(): Promise<PublicKey[]>

Returns

Promise<PublicKey[]>

Defined in

cognito.ts:45


verify

verify(token): Promise<boolean>

Use this function to verify the Cognito token

Parameters

Name Type
token string

Returns

Promise<boolean>

Defined in

cognito.ts:63