Update auth.js

This commit is contained in:
Matt DiMeglio 2026-01-18 00:14:04 -05:00
parent bca14aa71c
commit 4bc43a0862

View file

@ -1,4 +1,6 @@
export const validateMedicationApiKey = (req, res, next) => {
console.log('req: ', req);
console.log('req.headers: ', req.headers);
const authHeader = req.headers['authorization'];
const token = authHeader && authHeader.split(' ')[1];