refactor: auth stuff

This commit is contained in:
2025-09-18 11:39:29 -04:00
parent c82abe88e4
commit 3cc4b570d5
9 changed files with 93 additions and 44 deletions

View File

@@ -7,12 +7,17 @@ declare module "#auth-utils" {
interface UserSession {
loggedInAt: string;
switchedBy?: number;
isSwitchedTo: boolean;
}
interface SecureSessionData {
authToken: string;
refreshToken: string;
previous?: {
user: User;
loggedInAt: string;
secure: Pick<SecureSessionData, ["authToken", "refreshToken"]>;
};
}
}