Skip to content

Commit

Permalink
Merge pull request #47 from BouyguesTelecom/update/auth-token
Browse files Browse the repository at this point in the history
remove console.log and update local token bru
  • Loading branch information
AmelieLoulergue authored Dec 31, 2024
2 parents 3a26880 + 9228cb8 commit e38ef49
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/api/middleware/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const MEDIA_TOKEN = process.env.MEDIA_TOKEN;

export const authMiddleware = async (req, res, next) => {
const token = req.headers.authorization?.replace('Bearer ', '');
console.log('TOKEN::::', token, 'MEDIA TOKEN::::', MEDIA_TOKEN);
if (token === MEDIA_TOKEN) {
return next();
} else {
Expand Down
2 changes: 1 addition & 1 deletion tests/environments/LOCAL.bru
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ vars {
URL_NGINX: http://localhost:8080
CATALOG_ROUTE: /catalog
URL_API_PREFIX: /palpatine
AUTH_TOKEN: cooltokenyeah
AUTH_TOKEN: token
}

0 comments on commit e38ef49

Please sign in to comment.