Any tips on how to specify `customAttributes` in f...
# sst
l
Any tips on how to specify
customAttributes
in for a Cognito UserPool? I've looked through all documentation, but I can't make heads or tails of how to implement
ICustomAttribute
.
Copy code
const auth = new sst.Auth(this, 'Auth', {
      cognito: {
        userPool: {
          signInAliases: { email: true },
          removalPolicy: RemovalPolicy.DESTROY,
          customAttributes: {
            FirstName: { ??? WHAT GOES HERE ??? }
          }
        },
        triggers: {
          preSignUp: 'src/triggers/preSignup.handler',
          postConfirmation: 'src/triggers/postConfirmation.handler',
          preAuthentication: 'src/triggers/preAuthentication.handler',
          postAuthentication: 'src/triggers/postAuthentication.handler',
        },
      },
    });
g
l
Thanks, geek! Yeah, finally bumped into that one. Seems Cognito is the hairiest beast of the serverless services!