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/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"
}
}
diff --git a/src/auth0-context.tsx b/src/auth0-context.tsx
index d7343a9c..5398ed28 100644
--- a/src/auth0-context.tsx
+++ b/src/auth0-context.tsx
@@ -126,9 +126,9 @@ export interface Auth0ContextInterface
* ```js
* await connectAccountWithRedirect({
* connection: 'google-oauth2',
- * authorizationParams: {
- * access_type: 'offline',
- * scope: 'openid profile email https://www.googleapis.com/auth/drive.readonly',
+ * scopes: ['openid', 'profile', 'email', 'https://www.googleapis.com/auth/drive.readonly'],
+ * authorization_params: {
+ * // additional authorization params to forward to the authorization server
* }
* });
* ```