Skip to content

Commit

Permalink
await
Browse files Browse the repository at this point in the history
  • Loading branch information
codabrink committed Nov 26, 2024
1 parent 13aac7f commit 9badaec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/frames-validator/src/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ export async function validateFramesPost(
}
} else {
// make sure inbox IDs match
const authorized = Client.isInstallationAuthorized(inboxId, installationId);
const authorized = await Client.isInstallationAuthorized(
inboxId,
installationId,
);
if (!authorized) {
throw new Error("Invalid inbox ID");
}
Expand Down

0 comments on commit 9badaec

Please sign in to comment.