@dossierhq/database-adapter
Version:
A library for adapting Dossier to a database, such as SQLite or PostgreSQL.
16 lines (15 loc) • 394 B
TypeScript
export type Session = WriteSession | ReadOnlySession;
export interface WriteSession {
type: 'write';
/** UUID */
readonly subjectId: string;
}
export interface ReadOnlySession {
type: 'readonly';
/** UUID, null if the principal/subject exists */
readonly subjectId: string | null;
}
export interface ResolvedAuthKey {
authKey: string;
resolvedAuthKey: string;
}