@5minds/processcube_engine
Version:
The ProcessCube Engine. Stores and executes BPMNs.
34 lines (33 loc) • 842 B
TypeScript
/**
* Contains the most commonly used properties for an identities token payload.
*
* The property names are based on the IdentityServer's token schema.
*/
export declare type TokenBody = {
/**
* The users unique ID.
* Machine tokens will store their IDs in a "client_id" property.
*/
sub?: string;
/**
* The ID with which the client identifies itself at the authority.
* Used by machine tokens, which will not have a "sub" property.
*/
client_id?: string;
/**
* The unix time in milliseconds until the token expires.
*/
exp?: number;
/**
* The users name.
*/
name?: string;
/**
* The user email address.
*/
email?: string;
/**
* A numerical representation of the time at which the token was issued.
*/
iat?: number;
};