<@U01MV4U2EV9> hey mate - by having Cognito config...
# help
j
@thdxr hey mate - by having Cognito configured to use email links instead of codes for confirmation, I’m having this error:
Cannot perform specific action because there does not exist a valid use pool domain associated with the user pool
How do I set a domain+name on the
Auth
construct? Couldn’t find it on the userPool or userPoolClient props
or @Jay @Frank if you guys are available
f
Hey @João Pedro, currently you can’t do it directly in the
Auth
construct. You’d create an
Auth
first:
Copy code
const auth = new sst.Auth(this, "Auth", {
  cognito: ...,
});
And then follow this example to add the domain. You can get the user pool via `auth.cognitoUserPool`:
Copy code
auth.cognitoUserPool.addDomain(...);
Let me know if this works.