Skip to content
Closed
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
4 changes: 2 additions & 2 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',
* 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
* }
* });
* ```
Expand Down
Loading