From 3d9253e67ffdb68bc75f34cf5c7b30b47633fcd9 Mon Sep 17 00:00:00 2001 From: rishabhpoddar Date: Mon, 15 Jul 2024 21:42:13 +0530 Subject: [PATCH] implements fixes --- CHANGELOG.md | 4 ++++ lib/build/genericComponentOverrideContext.js | 2 +- lib/build/version.d.ts | 2 +- lib/ts/version.ts | 2 +- package-lock.json | 4 ++-- package.json | 2 +- test/end-to-end/accountlinking.test.js | 16 ++++++++++++---- 7 files changed, 22 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 395161bf7..02ef9f447 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [unreleased] +## [0.43.1] - 2024-07-15 + +- Fixes to e2e test + ## [0.43.0] - 2024-06-25 ### Changes diff --git a/lib/build/genericComponentOverrideContext.js b/lib/build/genericComponentOverrideContext.js index d3a272a6b..e9275bb61 100644 --- a/lib/build/genericComponentOverrideContext.js +++ b/lib/build/genericComponentOverrideContext.js @@ -265,7 +265,7 @@ var SSR_ERROR = * License for the specific language governing permissions and limitations * under the License. */ -var package_version = "0.43.0"; +var package_version = "0.43.1"; /* Copyright (c) 2021, VRAI Labs and/or its affiliates. All rights reserved. * diff --git a/lib/build/version.d.ts b/lib/build/version.d.ts index b3a7d195c..44e314209 100644 --- a/lib/build/version.d.ts +++ b/lib/build/version.d.ts @@ -1 +1 @@ -export declare const package_version = "0.43.0"; +export declare const package_version = "0.43.1"; diff --git a/lib/ts/version.ts b/lib/ts/version.ts index a1230a1c5..5772580c1 100644 --- a/lib/ts/version.ts +++ b/lib/ts/version.ts @@ -12,4 +12,4 @@ * License for the specific language governing permissions and limitations * under the License. */ -export const package_version = "0.43.0"; +export const package_version = "0.43.1"; diff --git a/package-lock.json b/package-lock.json index df81ff3aa..05d714a73 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "supertokens-auth-react", - "version": "0.43.0", + "version": "0.43.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "supertokens-auth-react", - "version": "0.43.0", + "version": "0.43.1", "license": "Apache-2.0", "dependencies": { "intl-tel-input": "^17.0.19", diff --git a/package.json b/package.json index 0cf8f2b00..0ffec42e2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "supertokens-auth-react", - "version": "0.43.0", + "version": "0.43.1", "description": "ReactJS SDK that provides login functionality with SuperTokens.", "main": "./index.js", "engines": { diff --git a/test/end-to-end/accountlinking.test.js b/test/end-to-end/accountlinking.test.js index e1481a328..0b23079d4 100644 --- a/test/end-to-end/accountlinking.test.js +++ b/test/end-to-end/accountlinking.test.js @@ -373,10 +373,18 @@ describe("SuperTokens Account linking", function () { await tryThirdPartySignInUp(page, email, false, email2); assert.strictEqual(new URL(page.url()).pathname, "/auth/"); - assert.strictEqual( - await getGeneralError(page), - "Cannot sign in / up because new email cannot be applied to existing account. Please contact support. (ERR_CODE_005)" - ); + const features = await getFeatureFlags(); + if (features.includes("accountlinking-fixes")) { + assert.strictEqual( + await getGeneralError(page), + "Cannot sign in / up due to security reasons. Please try a different login method or contact support. (ERR_CODE_004)" + ); + } else { + assert.strictEqual( + await getGeneralError(page), + "Cannot sign in / up because new email cannot be applied to existing account. Please contact support. (ERR_CODE_005)" + ); + } }); it("should not allow sign in w/ an unverified thirdparty user in case of conflict", async function () {