From 06f01aa85c17a4164ac7971c475e508b28f5779c Mon Sep 17 00:00:00 2001 From: Erb3 <49862976+Erb3@users.noreply.github.com> Date: Sun, 3 Nov 2024 17:10:24 +0100 Subject: [PATCH] fix(frontend): generate auth URL with provider (#2891) Resolves an issue where the frontend generated URLs without provider property when there is a frontend redirect uri. Without the provider, labrinth defaults to GitHub. Fixes #2884 --- apps/frontend/src/composables/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/frontend/src/composables/auth.js b/apps/frontend/src/composables/auth.js index 606e401e5..8cdcd0dce 100644 --- a/apps/frontend/src/composables/auth.js +++ b/apps/frontend/src/composables/auth.js @@ -113,7 +113,7 @@ export const getAuthUrl = (provider, redirect = "") => { } const fullURL = `${config.public.siteUrl}${redirect}`; - return `${config.public.apiBaseUrl}auth/init?url=${fullURL}&provider=${provider}`; + return `${config.public.apiBaseUrl}auth/init?provider=${provider}&url=${fullURL}`; }; export const removeAuthProvider = async (provider) => {