Skip to content

AuthUserMetadata has invalid timestamp format #1468

Closed
@twaddington

Description

@twaddington

When printing the output of the AuthUserMetadata from my blocking function the creationTime and lastSignInTime dates are all screwed up (see below).

metadata: {
  creationTime: 'Thu, 18 Mar 55745 02:22:11 GMT',
  lastSignInTime: 'Thu, 18 Mar 55745 02:22:11 GMT'
}

At first glance this looks like some kind of conversion problem (microseconds instead of milliseconds for example).

The same values work fine when read from UserMetadata in my non-blocking auth.onCreate function.

I am using version 12.5.2 of the firebase-cli and the following package versions in my project:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions