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
+2 -1
View File
@@ -3121,10 +3121,11 @@ export async function changePassword(oldPassword: string, newPassword: string) {
export async function getOIDCAuthorizeUrl(
rememberMe = false,
desktopCallbackPort?: number,
): Promise<OIDCAuthorize> {
try {
const response = await authApi.get("/users/oidc/authorize", {
params: { rememberMe },
params: { rememberMe, desktopCallbackPort },
});
return response.data;
} catch (error) {