()
| 28 | type AuthParams = z.infer<typeof paramsValidator>; |
| 29 | |
| 30 | export function createSignInMutation() { |
| 31 | return createMutation(() => ({ |
| 32 | mutationFn: async (abort: AbortController) => { |
| 33 | const session = (await shouldUseLocalServerSession()) |
| 34 | ? await createLocalServerSession(abort.signal) |
| 35 | : await createHybridDesktopSession(abort.signal); |
| 36 | |
| 37 | await shell.open(session.url.toString()); |
| 38 | |
| 39 | const res = await session.complete(); |
| 40 | if (res) await processAuthData(res); |
| 41 | |
| 42 | getCurrentWindow().setFocus(); |
| 43 | }, |
| 44 | })); |
| 45 | } |
| 46 | |
| 47 | async function getConfiguredServerUrl() { |
| 48 | return ( |
no test coverage detected