Interface CognitoAuthenticationProps

Hierarchy

  • CognitoAuthenticationProps

Properties

groups?: {
    [name: string]: string;
}

Groups to create in Cognito user pool Key: group name Value: group description

Type declaration

  • [name: string]: string
identityPool?: {
    poolConfig?: IdentityPoolProps;
}

Create a new Cognito Identity Pool for the User pool

Type declaration

  • Optional Readonly poolConfig?: IdentityPoolProps

    configuration of the identity pool

sesEmailSender?: {
    email: string;
    name: string;
    region: string;
}

Configure SES mail sending

Type declaration

  • Readonly email: string

    Sender email. Needs to be already verified in SES

  • Readonly name: string

    Sender name

  • Readonly region: string

    AWS region to use for SES

triggers?: {
    customMessages?: boolean;
    preSignUp?: boolean;
    preTokenGeneration?: boolean;
}

Configure Cognito Lambda triggers

Type declaration

  • Optional Readonly customMessages?: boolean

    Attaches a lambda function to the custom message trigger

    Code has to reside in './src/lambda/cognito.custom-message.ts' with a method 'handler'

    Default

    false
    
  • Optional Readonly preSignUp?: boolean

    Attaches a lambda function to the pre sign-up trigger

    Code has to reside in './src/lambda/cognito.pre-signup.ts' with a method 'handler'

    Default

    false
    
  • Optional Readonly preTokenGeneration?: boolean

    Attaches a lambda function to the pre token generation trigger

    Code has to reside in './src/lambda/cognito.pre-token-generation.ts' with a method 'handler'

    Default

    false
    
userPoolName: string

Name for the Cognito user pool

userPoolProps?: UserPoolProps

Properties of the Cognito user pool

Generated using TypeDoc