@authup/core-kit
Version:
Package containing global constants, types & interfaces.
55 lines • 1.18 kB
TypeScript
import type { Client } from '../client';
import type { Realm } from '../realm';
import type { User } from '../user';
import type { Robot } from '../robot';
export interface Session {
/**
* Public ID
*/
id: string;
/**
* Subject ID
*/
sub: string;
/**
* Subject kind (e.g. user, robot, client)
*/
sub_kind: string;
/**
* Last used ip address.
*/
ip_address: string;
/**
* Last used user agent.
*/
user_agent: string;
/**
* Expiration date (iso)
*/
expires_at: string;
/**
* Time session was renewed.
*/
refreshed_at: string | null;
/**
* Last time subject was seen.
*/
seen_at: string | null;
/**
* Last time new access-token, refresh-token created for session.
*/
updated_at: string;
/**
* Creation date of session
*/
created_at: string;
client_id: Client['id'] | null;
client: Client | null;
user_id: User['id'] | null;
user: User | null;
robot_id: Robot['id'] | null;
robot: Robot | null;
realm_id: Realm['id'];
realm: Realm;
}
//# sourceMappingURL=entity.d.ts.map