Class: Authentication

Authentication

Provide information (sent by a remote device) about an authentication.
  • Username
  • Access Type (Fingerprint, Badge...)
  • Date

Constructor

new Authentication(username, accessType, createdAt)

Authentication default constructor.
Parameters:
Name Type Description
username string Authenticated user's name.
accessType AccessType Type of access used to authenticate.
createdAt Date Date the authentication was recorded.

Methods

getAccessType() → {AccessType}

Returns:
Access type.
Type
AccessType

getCreationDate() → {Date}

Returns:
Date of authentication.
Type
Date

getUsername() → {string}

Returns:
Username.
Type
string