diff --git a/CHANGELOG.md b/CHANGELOG.md index 25db5151..a5725348 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [3.0.2] - 2024-03-29 + +- Adds `appIdentifier` param to `getUserIdMappingForSuperTokensIds` +- Adds a new `useStaticKey` param to `updateSessionInfo_Transaction` + - This enables smooth switching between `useDynamicAccessTokenSigningKey` settings by allowing refresh calls to + change the signing key type of a session + ## [3.0.1] - 2023-07-04 - Updates `TenantConfig` toJson function to protect core config as well. diff --git a/build.gradle b/build.gradle index 36f81686..3b7d5641 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ plugins { id 'java-library' } -version = "3.0.1" +version = "3.0.2" repositories { mavenCentral() diff --git a/src/main/java/io/supertokens/pluginInterface/session/noSqlStorage/SessionNoSQLStorage_1.java b/src/main/java/io/supertokens/pluginInterface/session/noSqlStorage/SessionNoSQLStorage_1.java index 95274c5e..89c15a21 100644 --- a/src/main/java/io/supertokens/pluginInterface/session/noSqlStorage/SessionNoSQLStorage_1.java +++ b/src/main/java/io/supertokens/pluginInterface/session/noSqlStorage/SessionNoSQLStorage_1.java @@ -47,5 +47,5 @@ public interface SessionNoSQLStorage_1 extends SessionStorage, NoSQLStorage_1 { SessionInfoWithLastUpdated getSessionInfo_Transaction(String sessionHandle) throws StorageQueryException; boolean updateSessionInfo_Transaction(String sessionHandle, String refreshTokenHash2, long expiry, - String lastUpdatedSign) throws StorageQueryException; + String lastUpdatedSign, boolean useStaticKey) throws StorageQueryException; } diff --git a/src/main/java/io/supertokens/pluginInterface/session/sqlStorage/SessionSQLStorage.java b/src/main/java/io/supertokens/pluginInterface/session/sqlStorage/SessionSQLStorage.java index c84bc3a2..fea09586 100644 --- a/src/main/java/io/supertokens/pluginInterface/session/sqlStorage/SessionSQLStorage.java +++ b/src/main/java/io/supertokens/pluginInterface/session/sqlStorage/SessionSQLStorage.java @@ -54,5 +54,5 @@ SessionInfo getSessionInfo_Transaction(TenantIdentifier tenantIdentifier, Transa void updateSessionInfo_Transaction(TenantIdentifier tenantIdentifier, TransactionConnection con, String sessionHandle, String refreshTokenHash2, - long expiry) throws StorageQueryException; + long expiry, boolean useStaticKey) throws StorageQueryException; } diff --git a/src/main/java/io/supertokens/pluginInterface/useridmapping/UserIdMappingStorage.java b/src/main/java/io/supertokens/pluginInterface/useridmapping/UserIdMappingStorage.java index 7b1ebd4c..c44cb7a5 100644 --- a/src/main/java/io/supertokens/pluginInterface/useridmapping/UserIdMappingStorage.java +++ b/src/main/java/io/supertokens/pluginInterface/useridmapping/UserIdMappingStorage.java @@ -50,6 +50,6 @@ boolean updateOrDeleteExternalUserIdInfo(AppIdentifier appIdentifier, String use // This function will be used to retrieve the userId mapping for a list of userIds. The key of the HashMap will be // superTokensUserId and the value will be the externalUserId. If a mapping does not exist for an input userId, // it will not be in a part of the returned HashMap - HashMap getUserIdMappingForSuperTokensIds(ArrayList userIds) throws StorageQueryException; + HashMap getUserIdMappingForSuperTokensIds(AppIdentifier appIdentifier, ArrayList userIds) throws StorageQueryException; }