Skip to content

Commit

Permalink
fix: fixing failing tests, changing version
Browse files Browse the repository at this point in the history
  • Loading branch information
tamassoltesz committed Nov 27, 2024
1 parent 21e91fc commit 4fe694a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ compileTestJava { options.encoding = "UTF-8" }
// }
//}

version = "9.3.0"
version = "9.4.0"

repositories {
mavenCentral()
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/io/supertokens/authRecipe/AuthRecipe.java
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,8 @@ private static void checkIfLoginMethodCanBeLinkedOnTenant(TransactionConnection
if (!userWithSameThirdParty.tenantIds.contains(tenantId)) {
continue;
}
if (userWithSameThirdParty.isPrimaryUser) {
if (userWithSameThirdParty.isPrimaryUser &&
!userWithSameThirdParty.getSupertokensUserId().equals(primaryUser.getSupertokensUserId())) {
throw new AccountInfoAlreadyAssociatedWithAnotherPrimaryUserIdException(
userWithSameThirdParty.getSupertokensUserId(),
"This user's third party login is already associated with another" +
Expand Down

0 comments on commit 4fe694a

Please sign in to comment.