Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CognitoUser

Hierarchy

  • CognitoUser

Implements

Index

Constructors

constructor

Properties

attributes

attributes: AttributeType[]

authenticationFlowType

authenticationFlowType: string

client

client: CognitoIdentityProviderClient

credentials

credentials: CognitoIdentityCredentials

isLoggedIn

isLoggedIn: boolean

keyPrefix

keyPrefix: string

pool

signInUserSession

signInUserSession: undefined | CognitoUserSessionType

storage

userDataKey

userDataKey: string

username

username: string

Methods

cache

  • cache(action: string): void

cacheUserData

  • cacheUserData(userData: Record<string, unknown>): void

clearCachedUserData

  • clearCachedUserData(): void

completeNewPasswordChallenge

  • completeNewPasswordChallenge(pass: string): string

confirmSignUp

  • confirmSignUp(confirmationCode: string, forceAliasCreation: boolean): Promise<ConfirmSignUpCommandOutput>

getCognitoUserSession

getSession

getSignInUserSession

getUserAttributes

  • getUserAttributes(): Promise<AttributeType[]>

getUsername

  • getUsername(): string

refreshSession

setSignInUserSession

signOut

  • signOut(): void

Generated using TypeDoc