Skip to main content

TokenCommandModule.TokenInfo

A class in TavernLib, TavernLib.ModulePorts.

A named token as token list and token whoami answer it, with JSON names for TavernKeeper and a one-line text form. Never holds the token's text.

Constructors​

MemberWhat it is
TokenInfo()Makes an empty token description.

Properties​

MemberWhat it is
List<string> Access { get; set; }The paths the token may run, or one line saying a full token has everything but token and repeat.
DateTime? Created { get; set; }When the token was made, in UTC.
DateTime? Expires { get; set; }When it stops working, in UTC, or null for never.
string Id { get; set; }The token's id, or owner for the owner token in whoami.
DateTime? LastUsed { get; set; }When it last logged in, in UTC, or null if never.
string Name { get; set; }The name given at token create.
string Preset { get; set; }The preset label: full, custom or another one-word label.
int Sessions { get; set; }How many console sessions are open with it right now.
string Status { get; set; }active, expired or revoked.

Methods​

MemberWhat it is
override string ToString()The token on one line: id, name, preset, status, access, expiry, last use and sessions.

Used in​

Members of other types that take, return or hold a TokenInfo: