removed authorization from headers

This commit is contained in:
ACoolName 2024-05-25 01:33:35 +03:00
parent b395a55ee3
commit e7b0a55ba0

View File

@ -40,8 +40,6 @@ export function LoginPage(props: {}) {
fetchToken(username, password, Boolean(data.get('remember'))).then(
(token) => {
api.defaults.headers.common.Authorization = `Bearer ${token}`;
Cookies.set('auth', token)
setApiAuthenticated(true)
},
(error) => {