mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix(auth): use project sdk when deleting user authenticator
This commit is contained in:
1 file changed
+1
-1
@@ -15,7 +15,7 @@
|
||||
|
||||
async function deleteProvider() {
|
||||
try {
|
||||
await sdk.forConsole.users.deleteMfaAuthenticator($user.$id, AuthenticatorType.Totp);
|
||||
await sdk.forProject.users.deleteMfaAuthenticator($user.$id, AuthenticatorType.Totp);
|
||||
await invalidate(Dependencies.ACCOUNT);
|
||||
await invalidate(Dependencies.FACTORS);
|
||||
showDelete = false;
|
||||
|
||||
Reference in new issue
Block a user