Ömer Toraman
11/06/2021, 10:17 PMnew Auth(this, "Auth", {
cognito: { signInAliases: { email: true } },
});
2.
new Auth(this, "Auth", {
cognito: {
userPool: {
signInAliases: { email: true, phone: true },
},
},
});
There are examples for both of them in the documentation.
The upgrading to v0.12.0 section ( https://docs.serverless-stack.com/constructs/Auth#upgrading-to-v0120 ) suggests to use the second one, but I’m not sure what that version corresponds to.Adrian Schweizer
11/06/2021, 10:18 PMÖmer Toraman
11/06/2021, 10:19 PMAdrian Schweizer
11/06/2021, 10:19 PMJustin Philpott
11/06/2021, 10:19 PMÖmer Toraman
11/06/2021, 10:20 PMAdrian Schweizer
11/06/2021, 10:21 PMAdrian Schweizer
11/06/2021, 10:21 PMAdrian Schweizer
11/06/2021, 10:22 PMÖmer Toraman
11/06/2021, 10:23 PMÖmer Toraman
11/06/2021, 10:24 PMAdrian Schweizer
11/06/2021, 10:24 PMAdrian Schweizer
11/06/2021, 10:26 PMattachPermissionsForAuthUsers
and attachPermissionsForUnauthUsers
methods on Auth objectÖmer Toraman
11/06/2021, 10:33 PMÖmer Toraman
11/06/2021, 10:33 PMÖmer Toraman
11/06/2021, 10:33 PMAdrian Schweizer
11/06/2021, 10:36 PMFrank
new Auth(this, "Auth", {
cognito: {
userPool: {
signInAliases: { email: true, phone: true },
},
},
});
Just updated the doc.