Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add a new method to fetch the config as json #137

Merged
merged 7 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [4.0.6] - 2024-02-08

- Add a new method `getConfigFieldsJson` to fetch the plugin config as json
sattvikc marked this conversation as resolved.
Show resolved Hide resolved

## [4.0.5] - 2023-12-05
sattvikc marked this conversation as resolved.
Show resolved Hide resolved

- Adds `InvalidConfigException` to throws list of `canBeUsed` function
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id 'java-library'
}

version = "4.0.5"
version = "4.0.6"
sattvikc marked this conversation as resolved.
Show resolved Hide resolved

repositories {
mavenCentral()
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/io/supertokens/pluginInterface/Storage.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

package io.supertokens.pluginInterface;

import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import io.supertokens.pluginInterface.exceptions.DbInitException;
import io.supertokens.pluginInterface.exceptions.InvalidConfigException;
Expand Down Expand Up @@ -89,6 +90,8 @@ boolean isUserIdBeingUsedInNonAuthRecipe(AppIdentifier appIdentifier, String cla

Set<String> getValidFieldsInConfig();

JsonArray getConfigFieldsJson();
sattvikc marked this conversation as resolved.
Show resolved Hide resolved

sattvikc marked this conversation as resolved.
Show resolved Hide resolved
void setLogLevels(Set<LOG_LEVEL> logLevels);

String[] getAllTablesInTheDatabase() throws StorageQueryException;
Expand Down
Loading