Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -658,9 +658,9 @@ const ConnectAccount = () => {
const { connectAccountWithRedirect } = useAuth0();
return <button onClick={() => connectAccountWithRedirect({
connection: '<CONNECTION eg, google-apps-connection>',
access_type: 'offline', // You must also request a refresh token from the third party Identity Provider for it to be stored in Token Vault.
scopes: ['<SCOPE eg https://www.googleapis.com/auth/calendar.acls.readonly>'],
authorization_params: {
scope: '<SCOPE eg https://www.googleapis.com/auth/calendar.acls.readonly>'
// additional authorization params to forward to the authorization server
}
})}>Connect Google Calendar</button>;
};
Expand Down
9 changes: 4 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
6 changes: 3 additions & 3 deletions src/auth0-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ export interface Auth0ContextInterface<TUser extends User = User>
* ```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
* }
* });
* ```
Expand Down