Changed auth header

This commit is contained in:
Paweł Malak 2021-11-19 12:41:32 +01:00
parent 1220c56fc5
commit e13f6f2612
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
export const applyAuth = () => {
const token = localStorage.getItem('token') || '';
return { Authorization: `Bearer ${token}` };
return { Authorization_Flame: `Bearer ${token}` };
};

View File

@ -1,7 +1,7 @@
const jwt = require('jsonwebtoken');
const auth = (req, res, next) => {
const authHeader = req.header('Authorization');
const authHeader = req.header('Authorization_Flame');
let token;
let tokenIsValid = false;