Skip to content

Commit 34ef110

Browse files
authored
fix: core config type validation (#134)
* fix: core config type validation * fix: add ConfigMapper * fix: plugin * fix: changelog * fix: revert config mapper * fix: changelog
1 parent 57a9171 commit 34ef110

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
99

10+
## [4.0.5] - 2023-12-05
11+
12+
- Adds `InvalidConfigException` to throws list of `canBeUsed` function
13+
1014
## [4.0.4] - 2023-11-28
1115

1216
- Removes the error `Please use a CDI version that is greater than the one in which account linking feature was enabled` while querying users with linked accounts, but from an older version of CDI. We return details of the oldest login method in this case.

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
id 'java-library'
33
}
44

5-
version = "4.0.4"
5+
version = "4.0.5"
66

77
repositories {
88
mavenCentral()

src/main/java/io/supertokens/pluginInterface/Storage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void setKeyValue(TenantIdentifier tenantIdentifier, String key, KeyValueInfo inf
6969

7070
void setStorageLayerEnabled(boolean enabled);
7171

72-
boolean canBeUsed(JsonObject configJson);
72+
boolean canBeUsed(JsonObject configJson) throws InvalidConfigException;
7373

7474
// this function will be used in the createUserIdMapping and deleteUserIdMapping functions to check if the userId is
7575
// being used in NonAuth recipes.

0 commit comments

Comments
 (0)