Use bearer token for auth

This commit is contained in:
navaneeth 2021-07-19 13:30:57 +05:30
parent 8ac4508ed8
commit a57cf7c149

View file

@ -5,7 +5,7 @@ export function authHeader() {
const currentUser = authenticationService.currentUserValue;
if (currentUser && currentUser.auth_token) {
return {
Authorization: `${currentUser.auth_token}`,
Authorization: `Bearer ${currentUser.auth_token}`,
'Content-Type': 'application/json'
};
}