diff --git a/src/main/java/io/supertokens/pluginInterface/mfa/MfaStorage.java b/src/main/java/io/supertokens/pluginInterface/mfa/MfaStorage.java deleted file mode 100644 index adf5b2b6..00000000 --- a/src/main/java/io/supertokens/pluginInterface/mfa/MfaStorage.java +++ /dev/null @@ -1,10 +0,0 @@ -package io.supertokens.pluginInterface.mfa; - -import io.supertokens.pluginInterface.exceptions.StorageQueryException; -import io.supertokens.pluginInterface.multitenancy.AppIdentifier; -import io.supertokens.pluginInterface.multitenancy.TenantIdentifier; -import io.supertokens.pluginInterface.nonAuthRecipe.NonAuthRecipeStorage; -import io.supertokens.pluginInterface.sqlStorage.TransactionConnection; - -public interface MfaStorage extends NonAuthRecipeStorage { -} diff --git a/src/main/java/io/supertokens/pluginInterface/mfa/sqlStorage/MfaSQLStorage.java b/src/main/java/io/supertokens/pluginInterface/mfa/sqlStorage/MfaSQLStorage.java deleted file mode 100644 index 0980fcb1..00000000 --- a/src/main/java/io/supertokens/pluginInterface/mfa/sqlStorage/MfaSQLStorage.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2023, VRAI Labs and/or its affiliates. All rights reserved. - * - * This software is licensed under the Apache License, Version 2.0 (the - * "License") as published by the Apache Software Foundation. - * - * You may not use this file except in compliance with the License. You may - * obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - */ - -package io.supertokens.pluginInterface.mfa.sqlStorage; - -import io.supertokens.pluginInterface.exceptions.StorageQueryException; -import io.supertokens.pluginInterface.mfa.MfaStorage; -import io.supertokens.pluginInterface.multitenancy.AppIdentifier; -import io.supertokens.pluginInterface.sqlStorage.SQLStorage; -import io.supertokens.pluginInterface.sqlStorage.TransactionConnection; - -public interface MfaSQLStorage extends MfaStorage, SQLStorage { -} diff --git a/src/main/java/io/supertokens/pluginInterface/multitenancy/AppIdentifierWithStorage.java b/src/main/java/io/supertokens/pluginInterface/multitenancy/AppIdentifierWithStorage.java index 904e2870..b3c14185 100644 --- a/src/main/java/io/supertokens/pluginInterface/multitenancy/AppIdentifierWithStorage.java +++ b/src/main/java/io/supertokens/pluginInterface/multitenancy/AppIdentifierWithStorage.java @@ -23,7 +23,6 @@ import io.supertokens.pluginInterface.dashboard.sqlStorage.DashboardSQLStorage; import io.supertokens.pluginInterface.emailpassword.sqlStorage.EmailPasswordSQLStorage; import io.supertokens.pluginInterface.emailverification.sqlStorage.EmailVerificationSQLStorage; -import io.supertokens.pluginInterface.mfa.sqlStorage.MfaSQLStorage; import io.supertokens.pluginInterface.passwordless.sqlStorage.PasswordlessSQLStorage; import io.supertokens.pluginInterface.session.SessionStorage; import io.supertokens.pluginInterface.thirdparty.sqlStorage.ThirdPartySQLStorage; @@ -153,14 +152,6 @@ public TOTPSQLStorage getTOTPStorage() { return (TOTPSQLStorage) this.storage; } - public MfaSQLStorage getMfaStorage() { - if (this.storage.getType() != STORAGE_TYPE.SQL) { - // we only support SQL for now - throw new UnsupportedOperationException(""); - } - return (MfaSQLStorage) this.storage; - } - public ActiveUsersSQLStorage getActiveUsersStorage() { if (this.storage.getType() != STORAGE_TYPE.SQL) { // we only support SQL for now diff --git a/src/main/java/io/supertokens/pluginInterface/multitenancy/TenantIdentifierWithStorage.java b/src/main/java/io/supertokens/pluginInterface/multitenancy/TenantIdentifierWithStorage.java index 0c58c084..a422f87b 100644 --- a/src/main/java/io/supertokens/pluginInterface/multitenancy/TenantIdentifierWithStorage.java +++ b/src/main/java/io/supertokens/pluginInterface/multitenancy/TenantIdentifierWithStorage.java @@ -25,7 +25,6 @@ import io.supertokens.pluginInterface.session.SessionStorage; import io.supertokens.pluginInterface.thirdparty.sqlStorage.ThirdPartySQLStorage; import io.supertokens.pluginInterface.totp.sqlStorage.TOTPSQLStorage; -import io.supertokens.pluginInterface.mfa.MfaStorage; import io.supertokens.pluginInterface.useridmapping.UserIdMappingStorage; import io.supertokens.pluginInterface.userroles.sqlStorage.UserRolesSQLStorage; @@ -124,14 +123,6 @@ public TOTPSQLStorage getTOTPStorage() { return (TOTPSQLStorage) this.storage; } - public MfaStorage getMfaStorage() { - if (this.storage.getType() != STORAGE_TYPE.SQL) { - // we only support SQL for now - throw new UnsupportedOperationException(""); - } - return (MfaStorage) this.storage; - } - public MultitenancyStorage getMultitenancyStorageWithTargetStorage() { if (this.storage.getType() != STORAGE_TYPE.SQL) { // we only support SQL for now