feat(auth): show notification when MFA is enabled/disabled

This commit is contained in:
Steven Nguyen committed 2024-05-16 11:11:58 -07:00
1 parent ea25a87f4b
commit 1460ebd95e
1 file changed
+4
@@ -24,6 +24,10 @@
try {
await sdk.forConsole.account.updateMFA(!$user.mfa);
await invalidate(Dependencies.ACCOUNT);
addNotification({
message: `Multi-factor authentication has been ${$user.mfa ? 'enabled' : 'disabled'}`,
type: 'success'
});
trackEvent(Submit.AccountUpdateMfa, { mfa: !$user.mfa });
} catch (error) {
addNotification({