Skip to content

Commit ec5115d

Browse files
Fixed missing await - I hate myself...
1 parent 47eb092 commit ec5115d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "simple-koa-shopify-auth",
3-
"version": "2.1.14",
3+
"version": "2.1.15",
44
"description": "A better, simplified version of the (no longer supported) @Shopify/koa-shopify-auth middleware library. It removes the use of cookies for sessions (which greatly smooths the auth process), replaces a deprecated API call, and supports v2 of the official @shopify/shopify-api package.",
55
"author": "TheSecurityDev",
66
"license": "MIT",

src/verify-request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default function verifyRequest(options?: VerifyRequestOptions) {
5252
// Verify session is valid
5353
try {
5454
if (session.isActive()) {
55-
checkSessionOnShopifyAPI(session); // Throws a 401 error if the access token is invalid
55+
await checkSessionOnShopifyAPI(session); // Throws a 401 error if the access token is invalid
5656
// If we get here, the session is valid
5757
setTopLevelOAuthCookieValue(ctx, null); // Clear the cookie
5858
await next();

0 commit comments

Comments
 (0)