Options
All
  • Public
  • Public/Protected
  • All
Menu
description

A DTO class that consists of the transferable properties of an account session.

since

v0.3.2

Hierarchy

Index

Constructors

Properties

accessToken?: string

The JWT access token that can be attached in the bearer authorization header of HTTP requests to indicate users that are authenticated ("logged in").

Access tokens are always signed with the dApp's auth secret and expire after 1 hour (one hour).

access

public

var

{string}

address: string

The Address of this account on dHealth Network. The account's 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.

example

"NDAPPH6ZGD4D6LBWFLGFZUT2KQ5OLBLU32K3HNY"

access

public

var

{string}

lastSessionHash?: string

The transaction hash that is/was attached to the last authenticated session of this account.

This field is optional and not indexed.

access

public

readonly
var

{string}

referralCode: string

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.

access

public

var

{number}

referredBy?: string

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.

access

public

readonly
var

{string}

refreshTokenHash?: string

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.

Refresh tokens are always signed with the dApp's auth secret and expire after 1 year (one year).

access

public

var

{string}

sub: string

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.

access

public

var

{string}

Generated using TypeDoc