removed authorization from headers
This commit is contained in:
parent
b395a55ee3
commit
e7b0a55ba0
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user