Files
zerobyte/app/context.ts
Nico 4dcafa0708 feat(auth): allow skipping forced recovery key download (#900)
* feat(auth): allow skipping forced recovery key download

* refactor: move from session storage to cookie
2026-05-19 20:36:45 +02:00

20 lines
401 B
TypeScript

type User = {
id: string;
email: string;
username: string;
name: string;
hasDownloadedResticPassword: boolean;
dateFormat: string;
timeFormat: string;
twoFactorEnabled?: boolean | null;
hasCredentialPassword?: boolean;
role?: string | null | undefined;
};
export type AppContext = {
user: User | null;
hasUsers: boolean;
sidebarOpen: boolean;
hasSkippedRecoveryKeyDownload: boolean;
};