header
This commit is contained in:
parent
b2e6438985
commit
3287e3721c
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ async function getEntryFromReq(req: Request) {
|
|||
}
|
||||
|
||||
function isAuthenticated(req: Request) {
|
||||
const bearer = req.headers.get('Bearer');
|
||||
const bearer = req.headers.get('bearer');
|
||||
if (!bearer) return false;
|
||||
|
||||
return bearer === env.BEARER_TOKEN;
|
||||
|
|
Loading…
Add table
Reference in a new issue