We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this happens after I use preTokenGen lambda for userPool
const postConfirmation = new sst.aws.Function("PostConfirmation", { handler: "src/server/functions/post-confirm.handler", architecture: "arm64", runtime: "nodejs20.x", link: [DB], }); const preToken = new sst.aws.Function("PreToken", { handler: "src/server/functions/pre-token.handler", architecture: "arm64", runtime: "nodejs20.x", link: [DB], }); const userPool = new aws.cognito.UserPool("NubIonUserPool", { autoVerifiedAttributes: ["email"], passwordPolicy: { minimumLength: 8, }, usernameAttributes: ["email"], lambdaConfig: { postConfirmation: postConfirmation.arn, preTokenGeneration: preToken.arn, }, }); const userPoolClient = new aws.cognito.UserPoolClient( "NubIonUserPoolClient", { userPoolId: userPool.id, }, );```
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
Turn out you have to do this
preTokenGenerationConfig: { lambdaArn: preToken.arn, lambdaVersion: "V1_0", },
No branches or pull requests
this happens after I use preTokenGen lambda for userPool
The text was updated successfully, but these errors were encountered: