Skip to content

Custom scopes for different requirements (iOS) #268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

AlvinTCH
Copy link
Contributor

@AlvinTCH AlvinTCH commented Apr 6, 2023

In the same manner as #267, I have moved the load function to a separate function and have configured the app to call the loadSignInClient function using data from

import { GoogleAuth } from '@codetrix-studio/capacitor-google-auth';

// use hook after platform dom ready
GoogleAuth.initialize({
  clientId: 'CLIENT_ID.apps.googleusercontent.com',
  scopes: ['profile', 'email'],
  grantOfflineAccess: true,
});

with fallback from the capacitor config

I will do the updating of the readme file when these two pull requests are merged in

@AlvinTCH AlvinTCH closed this Apr 6, 2023
@AlvinTCH AlvinTCH deleted the iosCustomScope branch April 7, 2023 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant