Skip to content

Commit

Permalink
fix: mfa cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Oct 12, 2023
1 parent e18b86a commit 5ca1977
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
11 changes: 0 additions & 11 deletions src/main/java/io/supertokens/pluginInterface/mfa/MfaStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 5ca1977

Please sign in to comment.