feat: implement RFC 8252 system browser OIDC authentication for desktop

This commit is contained in:
ZacharyZcR
2026-05-13 19:18:44 +08:00
parent ec87f8a4d1
commit 4f23e3d22c
5 changed files with 68 additions and 3 deletions
+3
View File
@@ -43,6 +43,9 @@ contextBridge.exposeInMainWorld("electronAPI", {
timeoutMs,
),
oidcSystemBrowserAuth: (authUrl, callbackPort) =>
ipcRenderer.invoke("oidc-system-browser-auth", authUrl, callbackPort),
invoke: (channel, ...args) => ipcRenderer.invoke(channel, ...args),
});