diff --git a/client/src/utility/applyAuth.ts b/client/src/utility/applyAuth.ts index 95dcfb2..cf79efe 100644 --- a/client/src/utility/applyAuth.ts +++ b/client/src/utility/applyAuth.ts @@ -1,4 +1,4 @@ export const applyAuth = () => { const token = localStorage.getItem('token') || ''; - return { Authorization: `Bearer ${token}` }; + return { Authorization_Flame: `Bearer ${token}` }; }; diff --git a/middleware/auth.js b/middleware/auth.js index c73d0ca..137c78d 100644 --- a/middleware/auth.js +++ b/middleware/auth.js @@ -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;