From a259daec8bb5787aff025fbc3215816f93d6c76b Mon Sep 17 00:00:00 2001 From: guabu <135956181+guabu@users.noreply.github.com> Date: Wed, 12 Nov 2025 18:35:45 +0100 Subject: [PATCH 1/3] chore: bump auth0-spa-js to support scopes parameter for connected accounts --- EXAMPLES.md | 4 ++-- src/auth0-context.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/EXAMPLES.md b/EXAMPLES.md index 0bc56771..007fe900 100644 --- a/EXAMPLES.md +++ b/EXAMPLES.md @@ -658,9 +658,9 @@ const ConnectAccount = () => { const { connectAccountWithRedirect } = useAuth0(); return ; }; diff --git a/src/auth0-context.tsx b/src/auth0-context.tsx index d7343a9c..d40a9d25 100644 --- a/src/auth0-context.tsx +++ b/src/auth0-context.tsx @@ -126,9 +126,9 @@ export interface Auth0ContextInterface * ```js * await connectAccountWithRedirect({ * connection: 'google-oauth2', + * scopes: ['openid', 'profile', 'email', 'https://www.googleapis.com/auth/drive.readonly'], * authorizationParams: { - * access_type: 'offline', - * scope: 'openid profile email https://www.googleapis.com/auth/drive.readonly', + * // additional authorization params to forward to the authorization server * } * }); * ``` From e09e99a32c4ce2491a5ebe90c51bd424b5fc484e Mon Sep 17 00:00:00 2001 From: Gyanesh Gouraw Date: Tue, 18 Nov 2025 11:17:18 +0530 Subject: [PATCH 2/3] chore: update @auth0/auth0-spa-js to version 2.9.0 --- package-lock.json | 9 ++++----- package.json | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index fdfa3e15..04b5cdd5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "2.8.0", "license": "MIT", "dependencies": { - "@auth0/auth0-spa-js": "^2.7.0" + "@auth0/auth0-spa-js": "^2.9.0" }, "devDependencies": { "@rollup/plugin-node-resolve": "^15.0.1", @@ -74,10 +74,9 @@ } }, "node_modules/@auth0/auth0-spa-js": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/@auth0/auth0-spa-js/-/auth0-spa-js-2.7.0.tgz", - "integrity": "sha512-o29ZDbUUCJcEXeBP5LPuacbP28BkNroHuq3jfKbNjFiiWjmrCe95jwPAYb6+9PGyEbs8Wva4fGkVSNZ2HZFEGA==", - "license": "MIT", + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/@auth0/auth0-spa-js/-/auth0-spa-js-2.9.0.tgz", + "integrity": "sha512-HmV9zaV3kpTHoVsdQCrHSisIUWxGDyVECcXg94Ky5uKU/Q03h68x0mkwSoz3JEmNIflg5xeZSn2m75BTkcFORw==", "dependencies": { "browser-tabs-lock": "^1.2.15", "dpop": "^2.1.1", diff --git a/package.json b/package.json index 761949f5..9883f895 100644 --- a/package.json +++ b/package.json @@ -95,6 +95,6 @@ "react-dom": "^16.11.0 || ^17 || ^18 || ^19" }, "dependencies": { - "@auth0/auth0-spa-js": "^2.7.0" + "@auth0/auth0-spa-js": "^2.9.0" } } From 5bc819852ade6cc5a695c50113b6c9450e78be6c Mon Sep 17 00:00:00 2001 From: Gyanesh Gouraw Date: Tue, 18 Nov 2025 13:00:15 +0530 Subject: [PATCH 3/3] fix: update authorizationParams to authorization_params in Auth0ContextInterface --- src/auth0-context.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth0-context.tsx b/src/auth0-context.tsx index d40a9d25..5398ed28 100644 --- a/src/auth0-context.tsx +++ b/src/auth0-context.tsx @@ -127,7 +127,7 @@ export interface Auth0ContextInterface * await connectAccountWithRedirect({ * connection: 'google-oauth2', * scopes: ['openid', 'profile', 'email', 'https://www.googleapis.com/auth/drive.readonly'], - * authorizationParams: { + * authorization_params: { * // additional authorization params to forward to the authorization server * } * });