Skip to content

Commit

Permalink
fix: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed May 24, 2024
1 parent 4962c7f commit 86829e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [6.2.0] - 2024-05-24

- Adds new class `ConfigFieldInfo` that represents a core config field
- Adds new method `getConfigFieldsJson` to fetch the plugin config as json
- Adds new method `getPluginConfigFieldsInfo` to fetch the plugin config as json in `DashboardStorage`
- Updates `TenantConfig` to support `null` and empty array state for `firstFactors`
- Update `ThirdPartyConfig` to support `null` and empty array state for `providers`

Expand Down
2 changes: 0 additions & 2 deletions src/main/java/io/supertokens/pluginInterface/Storage.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ boolean isUserIdBeingUsedInNonAuthRecipe(AppIdentifier appIdentifier, String cla

Set<String> getValidFieldsInConfig();

List<ConfigFieldInfo> getConfigFieldsInfoForDashboard();

void setLogLevels(Set<LOG_LEVEL> logLevels);

String[] getAllTablesInTheDatabase() throws StorageQueryException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.supertokens.pluginInterface.dashboard;

import io.supertokens.pluginInterface.ConfigFieldInfo;
import io.supertokens.pluginInterface.Storage;
import io.supertokens.pluginInterface.dashboard.exceptions.DuplicateEmailException;
import io.supertokens.pluginInterface.dashboard.exceptions.DuplicateUserIdException;
Expand All @@ -8,6 +9,8 @@
import io.supertokens.pluginInterface.multitenancy.AppIdentifier;
import io.supertokens.pluginInterface.multitenancy.exceptions.TenantOrAppNotFoundException;

import java.util.List;

public interface DashboardStorage extends Storage {

void createNewDashboardUser(AppIdentifier appIdentifier, DashboardUser userInfo)
Expand Down Expand Up @@ -35,4 +38,6 @@ DashboardSessionInfo getSessionInfoWithSessionId(AppIdentifier appIdentifier, St

// this function removes based on expired time, so we can use this to globally remove from a particular db.
void revokeExpiredSessions() throws StorageQueryException;

List<ConfigFieldInfo> getPluginConfigFieldsInfo();
}

0 comments on commit 86829e4

Please sign in to comment.