diff --git a/nginx/site.conf b/nginx/site.conf index 07923aab2c279c5449fc34b7c3bf5a11ad085124..e6d27c771cb85e336cc864e81228305a257148c7 100644 --- a/nginx/site.conf +++ b/nginx/site.conf @@ -13,7 +13,6 @@ server { } location /api { proxy_pass https://backend:1443/api; - } location /OAuth2Login { proxy_pass https://backend:1443/OAuth2Login; @@ -21,7 +20,7 @@ server { location /OAuth2Callback { proxy_pass https://backend:1443/OAuth2Callback; } - location /Logout { + location /Logout { proxy_pass https://backend:1443/Logout; } } diff --git a/src/hooks/useAuth.ts b/src/hooks/useAuth.ts index f1607e4b81a1fc77aa02ba28856e9d93de2acf5c..7071eae3548b6cf56f1952fe26128aa8dada53e8 100644 --- a/src/hooks/useAuth.ts +++ b/src/hooks/useAuth.ts @@ -18,7 +18,9 @@ export const useAuth = (): Auth => { //login user const loginUser = async (): Promise<void> => { try { - await axios.get(`${_apiUrl}OAuth2Login`, { withCredentials: true }) + const tmp = await axios.get(`${_apiUrl}OAuth2Login`, { withCredentials: true }) + console.log('lAAAAAA') + console.log(tmp) await setUserContext() } catch (e) { setError(e)