You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing details in the AuthBlockingEvent when using with the Authentication Emulator #8109
I did some digging and it looks like the provider data isn't being sent from Auth emulator and both the creationTime and lastSignInTime being sent are string representations of milliseconds since Epoch. In the Functions SDK we convert these times using new Date()here. Since those are treated as strings and not numbers, the output is Invalid Date. The Auth emulator needs to be patched to correctly send them as numbers so the SDK can parse them. I'll re-assign this issue so they can take a look.
Activity
colerogers commentedon Jan 16, 2025
Hey @vajahath thanks for opening this issue!
I did some digging and it looks like the provider data isn't being sent from Auth emulator and both the
creationTimeandlastSignInTimebeing sent are string representations of milliseconds since Epoch. In the Functions SDK we convert these times usingnew Date()here. Since those are treated as strings and not numbers, the output isInvalid Date. The Auth emulator needs to be patched to correctly send them as numbers so the SDK can parse them. I'll re-assign this issue so they can take a look.