Firebase Auth not storing name from Apple sign in

2,344 views
Skip to first unread message

Andy Maddison

unread,
Nov 30, 2020, 11:19:34 AM11/30/20
to Firebase Google Group
In the Firebase docs for Sign in with Apple it states

Apple only shares user information such as the display name with apps the first time a user signs in. Usually, Firebase stores the display name the first time a user signs in with Apple, which you can get with Auth.auth().currentUser.displayName. However, if you previously used Apple to sign a user in to the app without using Firebase, Apple will not provide Firebase with the user's display name.

I'm using Unity's Sign in with Apple plugin and when signing in for the first time I do get the display name returned so I know it is available.

{
    "credentialState":0,
    "userInfo":
    {
        "userId":"000318...",
        "email":"7x4...@privaterelay.appleid.com",
        "displayName":"Andy Mads",
        "idToken":"eyJraWQiOiI4...",
        "error":null,
        "nonce":"qprIj...",
        "userDetectionStatus":2
    },
    "error":null
}

However currentUser.displayName is not being set, and also the DisplayName property of the provider data for "apple.com" is also not being set. Why is this? 

Kato Richardson

unread,
Dec 1, 2020, 4:12:13 PM12/1/20
to Firebase Google Group
Hi Andy,

Did you include name in the scope? There's an example of that in the Firebase docs here.

☼, Kato

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/288f4a8b-24b7-4563-8be2-8a83b49715e2n%40googlegroups.com.


--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Andy Maddison

unread,
Dec 2, 2020, 11:33:20 AM12/2/20
to Firebase Google Group
I don't understand the relevance of that link. Apple JS? I'm using Unity's Sign in with Apple plugin and I get the email and name back in my app (as shown in the json I included). I could store it myself but according to the docs Firebase usually stores it but it doesn't appear to.

Andy 'Mads' Maddison

unread,
Feb 15, 2021, 5:31:29 AM2/15/21
to fireba...@googlegroups.com
Hello. 

Why have you not responded?

Is this issue likely to be fixed?

You received this message because you are subscribed to a topic in the Google Groups "Firebase Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/firebase-talk/rZPtOtwfAMU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/7945e2ab-90f7-4eb1-875e-69d8050c9123n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages