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
This commit is contained in:
Erb3 2024-11-03 17:10:24 +01:00 committed by GitHub
parent 5f48dc08a9
commit 06f01aa85c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) => {