Skip to content

Commit 7750f57

Browse files
chore: upgrade @auth0/auth0-spa-js to v2.11.0 (#948)
## What Upgrade `@auth0/auth0-spa-js` from `^2.9.x` to `^2.11.0` ## Why This upgrade brings support for organization parameter in token exchange operations, enabling better multi-tenant authentication scenarios. ## Changes - Updated `@auth0/auth0-spa-js` dependency to `^2.11.0` - Updated `exchangeToken` test to verify organization parameter handling ## What's new in spa-js v2.11.0 - Added organization parameter support to token exchange (#1477) - Allows specifying organization context during token exchange flows ## Testing - [x] Build passes: `npm run build` - [x] Tests pass: `npm test` ## References https://github.com/auth0/auth0-spa-js/releases/tag/v2.11.0
1 parent f0b9fb0 commit 7750f57

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

__tests__/auth-provider.test.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,12 +903,14 @@ describe('Auth0Provider', () => {
903903
subject_token: '__test_token__',
904904
subject_token_type: 'urn:test:token-type',
905905
scope: 'openid profile email',
906+
organization: 'org_123',
906907
});
907908
});
908909
expect(clientMock.exchangeToken).toHaveBeenCalledWith({
909910
subject_token: '__test_token__',
910911
subject_token_type: 'urn:test:token-type',
911912
scope: 'openid profile email',
913+
organization: 'org_123',
912914
});
913915
expect(response).toStrictEqual(tokenResponse);
914916
});

package-lock.json

Lines changed: 4 additions & 4 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
@@ -95,6 +95,6 @@
9595
"react-dom": "^16.11.0 || ^17 || ^18 || ~19.0.1 || ~19.1.2 || ^19.2.1"
9696
},
9797
"dependencies": {
98-
"@auth0/auth0-spa-js": "^2.9.1"
98+
"@auth0/auth0-spa-js": "^2.11.0"
9999
}
100100
}

0 commit comments

Comments
 (0)