export function loginUser()

in webapp/src/utils/auth.js [6:15]


export function loginUser(username, password) {
  console.log(`Getting token for ${username}`)
  return axios.post('/token', {
    username: username,
    password: password,
  }).then((res) => {
    console.log('response:' + res.data)
    setAuthToken(res.data)
  }).catch(err => console.log("Axios err: ", err))
}