Table of Contents

Struct AuthTokenData

Namespace
FishMMO.Database.Data
Assembly
FishMMO-DB.dll

Data transfer object for an issued authentication token record.

public struct AuthTokenData
Inherited Members

Constructors

AuthTokenData(long, string, string, long, DateTime, DateTime, bool)

public AuthTokenData(long id, string tokenHash, string accountName, long loginServerId, DateTime timeCreated, DateTime expiresUtc, bool revoked)

Parameters

id long
tokenHash string
accountName string
loginServerId long
timeCreated DateTime
expiresUtc DateTime
revoked bool

Fields

AccountName

Account name associated with token.

public readonly string AccountName

Field Value

string

ExpiresUtc

Token expiration timestamp (UTC).

public readonly DateTime ExpiresUtc

Field Value

DateTime

ID

Primary key.

public readonly long ID

Field Value

long

LoginServerId

Login server that issued the token.

public readonly long LoginServerId

Field Value

long

Revoked

Whether the token has been revoked.

public readonly bool Revoked

Field Value

bool

TimeCreated

Timestamp when token was created.

public readonly DateTime TimeCreated

Field Value

DateTime

TokenHash

Hashed authentication token.

public readonly string TokenHash

Field Value

string