When does creationTime or lastSignInTime of firebase.auth.UserMetadata returned as null/undefined?
Solution 1:
I'm not sure about creationTime but lastSignInTime can be undefined/null if the sign-up has occurred but the user has not signed in yet. For example the user might have to complete email verification or something along those lines.