Is there a way I can enable this upon creation usi...
# help
f
Is there a way I can enable this upon creation using the
Auth
class?
g
you can set this when creating user pool with CDK https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.AuthFlow.html and then create the auth const auth = new Auth(this, "Auth", { cdk: { userPool: userPool, userPoolClient: userPoolClient, }, });
f
Thanks @Gabriel
@Gabriel how about this client secret generation?
g
@Francis Menguito I think when it creates web app user pool client then there is no secret. (secrets are for native clients or if its federated login) But you can specify a secret when creating the user pool client: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.UserPoolClient.html
f
Ayt. Thank you!
f
Thanks @Gabriel