feat: handle login from deeplink

This commit is contained in:
Zamitto
2024-06-16 13:58:24 -03:00
parent 55c214eae6
commit 32566e5dfc
17 changed files with 243 additions and 62 deletions

View File

@@ -112,8 +112,15 @@ declare global {
checkForUpdates: () => Promise<boolean>;
restartAndInstallUpdate: () => Promise<void>;
/* Authg */
signout: () => Promise<void>;
onSignIn: (cb: () => void) => () => Electron.IpcRenderer;
onSignOut: (cb: () => void) => () => Electron.IpcRenderer;
/* User */
getUser: (username: string) => Promise<UserProfile | null>;
/* Profile */
getUserProfile: (username: string) => Promise<UserProfile | null>;
getMe: () => Promise<UserProfile | null>;
}