mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-26 21:39:43 +02:00
fix(desktop):add oauth session handoff
This commit is contained in:
parent
f481d1360a
commit
fcf2485863
4 changed files with 191 additions and 6 deletions
7
surfsense_web/types/window.d.ts
vendored
7
surfsense_web/types/window.d.ts
vendored
|
|
@ -143,6 +143,13 @@ interface ElectronAPI {
|
|||
// Auth token sync across windows
|
||||
getAuthTokens: () => Promise<{ bearer: string; refresh: string } | null>;
|
||||
setAuthTokens: (bearer: string, refresh: string) => Promise<void>;
|
||||
getAccessToken: () => Promise<string | null>;
|
||||
refreshAccessToken: () => Promise<string | null>;
|
||||
logout: () => Promise<void>;
|
||||
startGoogleOAuth: () => Promise<{ ok: true }>;
|
||||
onAuthChanged: (
|
||||
callback: (payload: { authed: boolean; accessToken: string | null }) => void
|
||||
) => () => void;
|
||||
// Keyboard shortcut configuration
|
||||
getShortcuts: () => Promise<{
|
||||
generalAssist: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue