Table of Contents

Struct TokenService.TokenVerifyResult

Namespace
FishMMO.Auth.Implementation
Assembly
FishMMO-AuthShared.dll

Result of a token decryption and verification operation.

public struct TokenService.TokenVerifyResult
Inherited Members

Fields

AccessLevel

Access level extracted from the verified token.

public AccessLevel AccessLevel

Field Value

AccessLevel

AccountName

Account name extracted from the verified token.

public string? AccountName

Field Value

string

ExpiresUtc

Token expiration time (UTC) extracted from the verified token.

public DateTime ExpiresUtc

Field Value

DateTime

IsValid

Whether decryption and HMAC verification both succeeded.

public bool IsValid

Field Value

bool

LoginServerId

Login server ID extracted from the verified token.

public long LoginServerId

Field Value

long

RealIp

Real client IP extracted from the verified token (v4+). Null for pre-v4 tokens.

public string? RealIp

Field Value

string

SigningKeyFound

If false, the signing key was not found but the HMAC verification ran anyway with a dummy key to equalize timing. Callers should reject.

public bool SigningKeyFound

Field Value

bool

SigningKeyId

Signing-key database ID extracted from the verified token.

public long SigningKeyId

Field Value

long

TokenHash

SHA-256 hex hash of the raw token for revocation lookups.

public string? TokenHash

Field Value

string