The JWT access token that can be attached in the bearer
authorization header of HTTP requests to indicate that
a user is authenticated.
This field is optional and not indexed.
See more details in AccessTokenDTO.
The account's address. An address typically refers to a
human-readable series of 39 characters, starting either with
a T
, for TESTNET addresses, or with a N
, for MAINNET addresses.
This field is required, indexed and values are expected
to be unique.
This field contains the mongo collection name for entries
that are stored using AccountSessionDocument or the model
AccountSessionModel.
Note that this field is not part of document properties
and used only internally to perform queries that refer to
an individual collection name, e.g. $unionWith
.
The document's creation timestamp. This field does not reflect the
date of creation of an account but rather the date of creation of the
cached database entry.
This field is optional and indexed.
The transaction hash that is/was attached to the last
authenticated session of this account.
This field is optional and not indexed.
The account's referral code. This code should be used when inviting
new users to the dApp. This field contains a unique random string of
8 characters.
This field is required, indexed and values are expected
to be unique.
The account's referrer address. This address refers to the
account that invited the current account to the dApp.
This field is optional and indexed.
The JWT refresh token that can be attached in the bearer
authorization header of HTTP requests to /auth/token
to
indicate that a user's access token must be refreshed.
This field is optional and not indexed.
See more details in AccessTokenDTO.
The JWT sub value that can be attached in the bearer
authorization header of HTTP requests to serve as a
unique identity of each device.
This field is not indexed.
The document's update timestamp. This field does not reflect the
date of update of an account but rather the date of update of the
cached database entry.
This field is optional and not indexed.
This method implements a specialized query format to query items
individually, as documents, in the collection: account-sessions
.
The individual document data that is used in a query.
This static method populates a AccountSessionDTO object from the values of a AccountSessionDocument as presented by mongoose queries.
The document as received from mongoose.
The DTO object that will be populated with values.
The dto
object with fields set.
Generated using TypeDoc
This class defines the exact fields that are stored in the corresponding MongoDB documents. It should be used whenever database documents are being handled or read for the
account-sessions
collection.Note that this class uses the generic Transferable trait to enable a
toDTO()
method on the model.v0.3.2