Skip to content

Commit 06f01aa

Browse files
authored
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
1 parent 5f48dc0 commit 06f01aa

File tree

1 file changed

+1
-1
lines changed
  • apps/frontend/src/composables

1 file changed

+1
-1
lines changed

apps/frontend/src/composables/auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export const getAuthUrl = (provider, redirect = "") => {
113113
}
114114
const fullURL = `${config.public.siteUrl}${redirect}`;
115115

116-
return `${config.public.apiBaseUrl}auth/init?url=${fullURL}&provider=${provider}`;
116+
return `${config.public.apiBaseUrl}auth/init?provider=${provider}&url=${fullURL}`;
117117
};
118118

119119
export const removeAuthProvider = async (provider) => {

0 commit comments

Comments
 (0)