capacitor-community / apple-sign-in

Sign in with Apple Support
MIT License
135 stars 58 forks source link

Cant get email and name scopes #72

Open asafg84 opened 2 years ago

asafg84 commented 2 years ago

Describe the bug SignInWithApple.authorize({ clientId: [clientId], redirectURI: [redirectURI], scopes: 'email name', state: '12345', nonce: 'nonce', })

Not returning email and name

To Reproduce Steps to reproduce the behavior:

  1. SignInWithApple.authorize({ clientId: [clientId], redirectURI: [redirectURI], scopes: 'email name', state: '12345', nonce: 'nonce', }).then(response => console.log(response))

Expected behavior return response w name and email { response: { authorizationCode: [authorizationCode], email: [email] familyName: [familyName] givenName: [givenName], identityToken: [identityToken], user: [appleUserId] } }

Screenshots

Screen Shot 2022-05-28 at 12 49 23

Smartphone (please complete the following information):

agomezmart commented 1 year ago

This is happening since you have already signed with Apple at least once. It is totally normal.

In order to get those values, go to Settings --> your profile --> Password and Security --> and remove your app in the list of apps that uses Apple ID

metinjakupi commented 11 months ago

I have the same problem

raykin commented 2 months ago

Revoke sign in records doesn't work on plugin version 5.0.0. I use the plugin to implement native AppleSignIn and AppleJs lib for desktop website and find out revoke sign in records can't work on Ionic app with this plugin, but works on desktop website.