constructor()

in cdk/lib/construct/auth.ts [11:31]


    constructor(scope: Construct, id: string) {
        super(scope, id);

        const userPool = new cognito.UserPool(this, "UserPool", {
            selfSignUpEnabled: true,
            autoVerify: {
                email: true,
            },
            removalPolicy: RemovalPolicy.DESTROY,
        });

        const client = userPool.addClient("Client", {
            authFlows: {
                userPassword: true,
                userSrp: true,
            },
        });

        this.userPool = userPool;
        this.userPoolClient = client;
    }