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(
|
fetchToken(username, password, Boolean(data.get('remember'))).then(
|
||||||
(token) => {
|
(token) => {
|
||||||
api.defaults.headers.common.Authorization = `Bearer ${token}`;
|
|
||||||
Cookies.set('auth', token)
|
|
||||||
setApiAuthenticated(true)
|
setApiAuthenticated(true)
|
||||||
},
|
},
|
||||||
(error) => {
|
(error) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user