mirror of
https://github.com/pawelmalak/flame.git
synced 2024-12-18 23:41:39 +03:00
Merge pull request #205 from pawelmalak/auth-header
Changed auth header
This commit is contained in:
commit
e0f6034868
@ -1,4 +1,4 @@
|
||||
export const applyAuth = () => {
|
||||
const token = localStorage.getItem('token') || '';
|
||||
return { Authorization: `Bearer ${token}` };
|
||||
return { Authorization_Flame: `Bearer ${token}` };
|
||||
};
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user