mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-06-02 13:13:43 -04:00
* feat(auth): allow skipping forced recovery key download * refactor: move from session storage to cookie
20 lines
401 B
TypeScript
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;
|
|
};
|