From 044e5f3bee3bcd04a95efd78830d16ac8dd34bec Mon Sep 17 00:00:00 2001 From: Manuel Holtgrewe Date: Mon, 2 Oct 2023 08:00:07 +0200 Subject: [PATCH] fix: login URL generation (#91) --- frontend/src/api/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/api/auth.ts b/frontend/src/api/auth.ts index 03fc692c..dad4d926 100644 --- a/frontend/src/api/auth.ts +++ b/frontend/src/api/auth.ts @@ -56,7 +56,7 @@ export class AuthClient { } async fetchOAuth2LoginUrl(provider: OAuth2Provider, redirectTo?: string | null): Promise { - let url = `${this.apiBaseUrl}/auth/external/cookie/${provider.name}/authorize` + let url = `${this.apiBaseUrl}auth/external/cookie/${provider.name}/authorize` if (redirectTo) { url += `?redirect_to=${encodeURIComponent(redirectTo)}` }