Class AccessTokenRow
An access token, stored as its SHA-256 hash so a leaked database does not leak sessions.
Inherited Members
Namespace: Uniform.Matrix.Server.Storage
Assembly: Uniform.Matrix.Server.dll
Syntax
public sealed class AccessTokenRow
Properties
| Edit this page View SourceCreatedTs
Creation in milliseconds since the Unix epoch.
Declaration
public long CreatedTs { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
DeviceId
Device the token belongs to.
Declaration
public required string DeviceId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
TokenHash
Hex SHA-256 of the token; primary key.
Declaration
public required string TokenHash { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UserId
User the token acts as.
Declaration
public required string UserId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |