AuthToken
Authentication token metadata.
export interface AuthToken {
/**
* The unique identifier of the token.
*/
id: string;
/**
* The human-readable name of the token.
*/
name: string;
/**
* The type of the token.
*/
type: string;
/**
* The origin of how the token was created.
*/
origin?: string;
/**
* The access scopes granted to the token.
*/
scopes?: (
| {
type: 'user';
origin:
| 'saml'
| 'github'
| 'gitlab'
| 'bitbucket'
| 'email'
| 'manual'
| 'passkey';
createdAt: number;
expiresAt?: number;
}
| {
type: 'team';
teamId: string;
origin:
| 'saml'
| 'github'
| 'gitlab'
| 'bitbucket'
| 'email'
| 'manual'
| 'passkey';
createdAt: number;
expiresAt?: number;
}
)[];
/**
* Timestamp (in milliseconds) of when the token expires.
*/
expiresAt?: number;
/**
* Timestamp (in milliseconds) of when the token was most recently used.
*/
activeAt: number;
/**
* Timestamp (in milliseconds) of when the token was created.
*/
createdAt: number;
}