Class ApiToken
API token used for Bearer authentication to the REST API.
public class ApiToken
- Inheritance
-
ApiToken
- Inherited Members
Properties
CreatedAt
public DateTime CreatedAt { get; set; }
Property Value
Id
public int Id { get; set; }
Property Value
LastUsedAt
public DateTime? LastUsedAt { get; set; }
Property Value
Name
Friendly name for the token (e.g., "CI script", "Laptop").
public string Name { get; set; }
Property Value
Prefix
Short token prefix used for indexed lookup (e.g., first 8 chars after prefix).
public string Prefix { get; set; }
Property Value
RevokedAt
public DateTime? RevokedAt { get; set; }
Property Value
TokenHash
Hash of the full token value (HMAC/SHA-256).
public string TokenHash { get; set; }
Property Value
User
public ApplicationUser User { get; set; }
Property Value
UserId
public int UserId { get; set; }