Skip to content

Commit

Permalink
fix(backend): await signature verification (#3175)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurapov authored Dec 11, 2024
1 parent cc9ef41 commit 0b4cac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ export class App {

if (this.config.adminApiSecret) {
koa.use(async (ctx, next: Koa.Next): Promise<void> => {
if (!verifyApiSignature(ctx, this.config)) {
if (!(await verifyApiSignature(ctx, this.config))) {
ctx.throw(401, 'Unauthorized')
}
return next()
Expand Down

0 comments on commit 0b4cac3

Please sign in to comment.