From dbf126341d51f72bd69610e541f16a01194f1a31 Mon Sep 17 00:00:00 2001 From: Yogesh Chaudhary Date: Thu, 11 Dec 2025 18:43:04 +0530 Subject: [PATCH] chore: upgrade @auth0/auth0-spa-js to v2.11.0 This upgrade brings support for organization parameter in token exchange operations. Changes: - Updated @auth0/auth0-spa-js dependency from ^2.9.x to ^2.11.0 - Updated exchangeToken test to verify organization parameter is properly passed through What's new in @auth0/auth0-spa-js v2.11.0: - Added organization parameter support to token exchange (#1477) - Allows specifying organization context during token exchange flows - Enables better multi-tenant authentication scenarios Refs: https://github.com/auth0/auth0-spa-js/releases/tag/v2.11.0 --- __tests__/auth-provider.test.tsx | 2 ++ package-lock.json | 8 ++++---- package.json | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/__tests__/auth-provider.test.tsx b/__tests__/auth-provider.test.tsx index 53624f68..2a3685da 100644 --- a/__tests__/auth-provider.test.tsx +++ b/__tests__/auth-provider.test.tsx @@ -903,12 +903,14 @@ describe('Auth0Provider', () => { subject_token: '__test_token__', subject_token_type: 'urn:test:token-type', scope: 'openid profile email', + organization: 'org_123', }); }); expect(clientMock.exchangeToken).toHaveBeenCalledWith({ subject_token: '__test_token__', subject_token_type: 'urn:test:token-type', scope: 'openid profile email', + organization: 'org_123', }); expect(response).toStrictEqual(tokenResponse); }); diff --git a/package-lock.json b/package-lock.json index e59cfb59..64469309 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "2.10.0", "license": "MIT", "dependencies": { - "@auth0/auth0-spa-js": "^2.9.1" + "@auth0/auth0-spa-js": "^2.11.0" }, "devDependencies": { "@rollup/plugin-node-resolve": "^15.0.1", @@ -74,9 +74,9 @@ } }, "node_modules/@auth0/auth0-spa-js": { - "version": "2.9.1", - "resolved": "https://registry.npmjs.org/@auth0/auth0-spa-js/-/auth0-spa-js-2.9.1.tgz", - "integrity": "sha512-GNyypxb8ck32tUacYPHAEZ/L845kLDchqXtFZM3Gt/KcBr9C8/c1ncAhGY1UnkgUw2MctwVnBOEoqCD3oP3SPg==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@auth0/auth0-spa-js/-/auth0-spa-js-2.11.0.tgz", + "integrity": "sha512-MZuUkB6cYAWm2uswWhEj8aMS7sw6zx8cs5YyPbrHCF+MlScLgfOkUnGe0tbnv7592xQ6M2h4lB66WyemFQEmPA==", "license": "MIT", "dependencies": { "browser-tabs-lock": "^1.2.15", diff --git a/package.json b/package.json index d7056d2c..5e908f98 100644 --- a/package.json +++ b/package.json @@ -95,6 +95,6 @@ "react-dom": "^16.11.0 || ^17 || ^18 || ~19.0.1 || ~19.1.2 || ^19.2.1" }, "dependencies": { - "@auth0/auth0-spa-js": "^2.9.1" + "@auth0/auth0-spa-js": "^2.11.0" } }