Skip to content

Commit b7d68c9

Browse files
implements fixes (#835)
1 parent 2f636f3 commit b7d68c9

File tree

7 files changed

+22
-10
lines changed

7 files changed

+22
-10
lines changed

CHANGELOG.md

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

88
## [unreleased]
99

10+
## [0.43.1] - 2024-07-15
11+
12+
- Fixes to e2e test
13+
1014
## [0.43.0] - 2024-06-25
1115

1216
### Changes

lib/build/genericComponentOverrideContext.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/build/version.d.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/ts/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
* License for the specific language governing permissions and limitations
1313
* under the License.
1414
*/
15-
export const package_version = "0.43.0";
15+
export const package_version = "0.43.1";

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "supertokens-auth-react",
3-
"version": "0.43.0",
3+
"version": "0.43.1",
44
"description": "ReactJS SDK that provides login functionality with SuperTokens.",
55
"main": "./index.js",
66
"engines": {

test/end-to-end/accountlinking.test.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,10 +373,18 @@ describe("SuperTokens Account linking", function () {
373373
await tryThirdPartySignInUp(page, email, false, email2);
374374

375375
assert.strictEqual(new URL(page.url()).pathname, "/auth/");
376-
assert.strictEqual(
377-
await getGeneralError(page),
378-
"Cannot sign in / up because new email cannot be applied to existing account. Please contact support. (ERR_CODE_005)"
379-
);
376+
const features = await getFeatureFlags();
377+
if (features.includes("accountlinking-fixes")) {
378+
assert.strictEqual(
379+
await getGeneralError(page),
380+
"Cannot sign in / up due to security reasons. Please try a different login method or contact support. (ERR_CODE_004)"
381+
);
382+
} else {
383+
assert.strictEqual(
384+
await getGeneralError(page),
385+
"Cannot sign in / up because new email cannot be applied to existing account. Please contact support. (ERR_CODE_005)"
386+
);
387+
}
380388
});
381389

382390
it("should not allow sign in w/ an unverified thirdparty user in case of conflict", async function () {

0 commit comments

Comments
 (0)