If i want to add MFA to an existing user pool, wha...
# help
h
If i want to add MFA to an existing user pool, what is the recommended way of doing this? Do I need to delete the existing user pool and redeploy?
f
Hey @Harris Newsteder, i don’t think you need to recreate the user pool to enable mfa.
If u r using SST v0.x, u can enable it like this
Copy code
new Auth(this, "Auth", {
  cognito: {
    mfa: cognito.Mfa.OPTIONAL or cognito.Mfa.REQUIRED
  },
});
and if u r using SST v1.x, u can enable it like this
Copy code
new Auth(this, "Auth", {
  cdk: {
    userPool: {
      mfa: cognito.Mfa.OPTIONAL or cognito.Mfa.REQUIRED
    },
  },
});
lemme know if that works for u