Token Authentication


token.png

let local_key = 'e6e02990878c735f790f251561788bf44f15e7ed'

axios({
  method: 'GET',
  url: '<http://localhost:8000/api/accounts/logout/>,
  headers: {
    Authorization: 'Token ' + local_key
  }
})
let local_key = 'e6e02990878c735f790f251561788bf44f15e7ed'

axios.defaults.headers.common['Authorization'] = 'Token ' + local_key