We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9db82ca commit 35299c8Copy full SHA for 35299c8
src/composes/services/useAuth.js
@@ -43,7 +43,9 @@ const { user, getUser } = useUser()
43
export const useAuth = () => {
44
const { request, BASE_URL, error } = useApi()
45
const initAuth = (provider) => {
46
- window.location.href = `${BASE_URL}/oAuth/${PROVIDERS.get(provider)}`
+ window.location.href = `${BASE_URL}/oAuth/external/init/${PROVIDERS.get(
47
+ provider,
48
+ )}/client/web` //TODO ClientTypeToENV
49
}
50
51
const auth = async ({ code, provider }) => {
@@ -53,6 +55,7 @@ export const useAuth = () => {
53
55
data: new URLSearchParams({
54
56
code,
57
grant_type: `${PROVIDERS.get(provider)}_oauth`,
58
+ clientType: 'web',
59
}),
60
})
61
0 commit comments