mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-07-15 21:03:47 +00:00
feat: implement RFC 8252 system browser OIDC authentication for desktop
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user