We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1489d2b commit cc90b52Copy full SHA for cc90b52
index.js
@@ -22,6 +22,12 @@ if (!signature) {
22
const app = createApp({
23
onRequest: (event) => {
24
const auth = event.headers.get("Authorization");
25
+ if (auth === null)
26
+ throw createError({
27
+ status: 400,
28
+ statusMessage: "Unauthorized",
29
+ message: "Missing signature",
30
+ });
31
const [type, token] = auth.split(" ");
32
if (token === null)
33
throw createError({
0 commit comments