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:
parent
5f48dc08a9
commit
06f01aa85c
@ -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) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user