-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
bug: SignInwithApple returns displayName null for first connexion #417
Comments
Apple provides the display name only once at signup. |
I did it ... |
Okay, I will take a closer look at it as soon as possible. |
Thanks. Do you have a working example maybe ? please, because it's urgent |
With version 5.1.0 it's working on Web but not for ios simulator |
It should work with the demo app. But the demo app does not use There are currently a few open issues that I need to work through. If you want you can have your issue prioritized via a one-time sponsorship. Otherwise PRs are also welcome. |
Finally I use this code: let options: SignInWithAppleOptions = {
clientId: 'cclientID', //
redirectURI: 'handler', //
scopes: 'email name',
};
return SignInWithApple.authorize(options)
.then((result: SignInWithAppleResponse) => {
const provider = new OAuthProvider('apple.com')
const authCredential = provider.credential({
idToken: result.response.identityToken,
});
const displayName = `${result.response.givenName} ${result.response.familyName}`
return signInWithCredential(getAuth(), authCredential) Issue is that signInWithCredential doesn't return displayName. DisplayName is still null |
I am glad you found a workaround. |
I use this above code for android and IOS, and your code for Web |
I mean on which platforms does the bug with the |
On Ios and android. Sorry |
Oh, so you mean on Android & iOS? |
Yes :) |
Thanks 👍 |
@ludonoel1 This might help you: #481 (comment) |
It looks like there hasn't been a reply in 30 days, so I'm closing this issue. |
Plugin(s)
Did you test the latest version?
Platform(s)
Current behavior
This is my code :
Problem is that displayName null for new account...
I remove account in firebase console after every registration.
Expected behavior
I'm expecting to get displayName of Apple account where I can find firstname and lastname.
Reproduction
none
Steps to reproduce
Just run this code
Other information
No response
Capacitor doctor
@capacitor/cli: 5.2.2
@capacitor/core: 5.2.2
@capacitor/android: 5.2.2
@capacitor/ios: 5.2.2
Installed Dependencies:
@capacitor/cli: 5.0.5
@capacitor/core: 5.0.5
@capacitor/android: 5.0.5
@capacitor/ios: 5.0.5
Before submitting
The text was updated successfully, but these errors were encountered: