Skip to content

Commit 468ff69

Browse files
author
Yash Agrawal
committed
debug: add console.logs
1 parent 6c2c93f commit 468ff69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/auth.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
/* eslint-disable functional/no-expression-statements */
12
const { API_KEY } = import.meta.env
23

34
export const auth = (req: Request): boolean => {
45
const key = req.headers.get('authorization')?.replace(/Bearer(\s)+/i, '')
6+
console.log('KEY', key)
57
return key === API_KEY
68
}

0 commit comments

Comments
 (0)