From 5ca1977a97a9aa96f09feafac62de2b7159ffd97 Mon Sep 17 00:00:00 2001 From: Sattvik Chakravarthy Date: Thu, 12 Oct 2023 15:48:03 +0530 Subject: [PATCH] fix: mfa cleanup --- .../supertokens/pluginInterface/mfa/MfaStorage.java | 11 ----------- .../pluginInterface/mfa/sqlStorage/MfaSQLStorage.java | 3 --- 2 files changed, 14 deletions(-) diff --git a/src/main/java/io/supertokens/pluginInterface/mfa/MfaStorage.java b/src/main/java/io/supertokens/pluginInterface/mfa/MfaStorage.java index 77a3184c..adf5b2b6 100644 --- a/src/main/java/io/supertokens/pluginInterface/mfa/MfaStorage.java +++ b/src/main/java/io/supertokens/pluginInterface/mfa/MfaStorage.java @@ -7,15 +7,4 @@ import io.supertokens.pluginInterface.sqlStorage.TransactionConnection; public interface MfaStorage extends NonAuthRecipeStorage { - // Enable (insert) a factor for a user and return true if it actually inserted something. - boolean enableFactor(TenantIdentifier tenantIdentifier, String userId, String factorId) throws StorageQueryException; - - // List all the factors for a user: - String[] listFactors(TenantIdentifier tenantIdentifier, String userId) throws StorageQueryException; - - // Disable (delete) a factor for a user and return true if it actually deleted something. - boolean disableFactor(TenantIdentifier tenantIdentifier, String userId, String factorId) throws StorageQueryException; - - // Delete a user from a tenant (with all the relevant factors) - boolean deleteMfaInfoForUser(TenantIdentifier tenantIdentifier, String userId) throws StorageQueryException; } diff --git a/src/main/java/io/supertokens/pluginInterface/mfa/sqlStorage/MfaSQLStorage.java b/src/main/java/io/supertokens/pluginInterface/mfa/sqlStorage/MfaSQLStorage.java index 087ee133..0980fcb1 100644 --- a/src/main/java/io/supertokens/pluginInterface/mfa/sqlStorage/MfaSQLStorage.java +++ b/src/main/java/io/supertokens/pluginInterface/mfa/sqlStorage/MfaSQLStorage.java @@ -23,7 +23,4 @@ import io.supertokens.pluginInterface.sqlStorage.TransactionConnection; public interface MfaSQLStorage extends MfaStorage, SQLStorage { - // Delete a user across all tenants (with all the relevant factors) - boolean deleteMfaInfoForUser_Transaction(TransactionConnection con, AppIdentifier appIdentifier, String userId) throws - StorageQueryException; }