Skip to content

Commit ac06e87

Browse files
authored
fix: backport to core 6.0 (#151)
1 parent 4c13b83 commit ac06e87

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [3.0.2] - 2024-03-29
11+
12+
- Adds `appIdentifier` param to `getUserIdMappingForSuperTokensIds`
13+
- Adds a new `useStaticKey` param to `updateSessionInfo_Transaction`
14+
- This enables smooth switching between `useDynamicAccessTokenSigningKey` settings by allowing refresh calls to
15+
change the signing key type of a session
16+
1017
## [3.0.1] - 2023-07-04
1118

1219
- Updates `TenantConfig` toJson function to protect core config as well.

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 = "3.0.1"
5+
version = "3.0.2"
66

77
repositories {
88
mavenCentral()

src/main/java/io/supertokens/pluginInterface/session/noSqlStorage/SessionNoSQLStorage_1.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ public interface SessionNoSQLStorage_1 extends SessionStorage, NoSQLStorage_1 {
4747
SessionInfoWithLastUpdated getSessionInfo_Transaction(String sessionHandle) throws StorageQueryException;
4848

4949
boolean updateSessionInfo_Transaction(String sessionHandle, String refreshTokenHash2, long expiry,
50-
String lastUpdatedSign) throws StorageQueryException;
50+
String lastUpdatedSign, boolean useStaticKey) throws StorageQueryException;
5151
}

src/main/java/io/supertokens/pluginInterface/session/sqlStorage/SessionSQLStorage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@ SessionInfo getSessionInfo_Transaction(TenantIdentifier tenantIdentifier, Transa
5454

5555
void updateSessionInfo_Transaction(TenantIdentifier tenantIdentifier, TransactionConnection con,
5656
String sessionHandle, String refreshTokenHash2,
57-
long expiry) throws StorageQueryException;
57+
long expiry, boolean useStaticKey) throws StorageQueryException;
5858
}

src/main/java/io/supertokens/pluginInterface/useridmapping/UserIdMappingStorage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ boolean updateOrDeleteExternalUserIdInfo(AppIdentifier appIdentifier, String use
5050
// This function will be used to retrieve the userId mapping for a list of userIds. The key of the HashMap will be
5151
// superTokensUserId and the value will be the externalUserId. If a mapping does not exist for an input userId,
5252
// it will not be in a part of the returned HashMap
53-
HashMap<String, String> getUserIdMappingForSuperTokensIds(ArrayList<String> userIds) throws StorageQueryException;
53+
HashMap<String, String> getUserIdMappingForSuperTokensIds(AppIdentifier appIdentifier, ArrayList<String> userIds) throws StorageQueryException;
5454

5555
}

0 commit comments

Comments
 (0)