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 * } * }); * ```