firebase-js-sdk icon indicating copy to clipboard operation
firebase-js-sdk copied to clipboard

signInWithCustomToken has null providerId on UserCredential

Open marcusx2 opened this issue 3 years ago • 1 comments

When signing in using signInWithCustomToken, it returns a user credential. The providerId field is null. However, there is also the user field. The user field also has a providerId field, and the providerId field of the user is "firebase", not null. I don't think this mismatch is intentional. The providerId at the root of the userCredential should also be "firebase" when using signInWithCustomToken.

marcusx2 avatar Jul 22 '22 20:07 marcusx2

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Jul 22 '22 20:07 google-oss-bot