-
Notifications
You must be signed in to change notification settings - Fork 161
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
feat: add additional scopes request #167
base: master
Are you sure you want to change the base?
Conversation
hi @joeflateau need you help with this, and is need sponsoring you work) CapacitorGoogleAuth/ios/Plugin/Plugin.swift Lines 67 to 73 in 27f0111
|
@joeflateau #158 is example, but in my case need get google contacts from address book In my onboarding screen app, login with google is required, is i'm set scopes ['profile', 'email', 'openid', 'https://www.googleapis.com/auth/contacts.readonly'] most people don't share contacts and leave the app 😨 but if we logged in a user with default areas async function getContacts() {
// TODO: maybe need add checkScopes ?
await GoogleAuth.addScopes([
'https://www.googleapis.com/auth/contacts.readonly'
])
const { result } = await gapi.client.people.people.connections.list({
'resourceName': 'people/me',
'personFields': 'names',
})
return result.connections.map((person) => person.names[0].displayName)
} |
@hoi4 maybe you help for this? |
Feature for simple request adding/removing additional scopes already authorised user
addScopes
removeScopes
closes: #158