New auth header since authorization is now used for jwts

This commit is contained in:
2023-10-21 23:04:03 -04:00
parent 9212e3e454
commit 45febd0585
2 changed files with 15 additions and 15 deletions

View File

@ -3,8 +3,8 @@ import precheck from "./precheck.js";
export async function onRequestPost(context: RequestContext) {
if (
context.request.headers.get("authorization") !==
`Bearer ${context.env.ROBLOX_APPEALS_TOKEN}`
context.request.headers.get("rbx-auth") !==
context.env.ROBLOX_APPEALS_TOKEN
)
return jsonError("Unauthorized", 401);