UserMetadata

public class UserMetadata extends Object

Contains additional metadata associated with a user account.

Public Constructor Summary

UserMetadata(long creationTimestamp)
UserMetadata(long creationTimestamp, long lastSignInTimestamp, long lastRefreshTimestamp)

Public Method Summary

long
getCreationTimestamp()
Returns the time at which the account was created.
long
getLastRefreshTimestamp()
Returns the time at which the user was last active (ID token refreshed).
long
getLastSignInTimestamp()
Returns the time at which the user last signed in.

Inherited Method Summary

Public Constructors

public UserMetadata (long creationTimestamp)

public UserMetadata (long creationTimestamp, long lastSignInTimestamp, long lastRefreshTimestamp)

Public Methods

public long getCreationTimestamp ()

Returns the time at which the account was created.

Returns
  • Milliseconds since epoch timestamp.

public long getLastRefreshTimestamp ()

Returns the time at which the user was last active (ID token refreshed).  

Returns
  • Milliseconds since epoch timestamp, or 0 if the user was never active.

public long getLastSignInTimestamp ()

Returns the time at which the user last signed in.

Returns
  • Milliseconds since epoch timestamp, or 0 if the user has never signed in.