From c5aeeddb11a8cd4b7f6568d63da290d99298abd7 Mon Sep 17 00:00:00 2001 From: Tom Riley Date: Tue, 29 Aug 2023 22:39:52 +0900 Subject: [PATCH] Log the error message of InvalidJwtTokenError --- lib/shopify_app/controller_concerns/login_protection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shopify_app/controller_concerns/login_protection.rb b/lib/shopify_app/controller_concerns/login_protection.rb index 290cb2af5..6ef510062 100644 --- a/lib/shopify_app/controller_concerns/login_protection.rb +++ b/lib/shopify_app/controller_concerns/login_protection.rb @@ -58,7 +58,7 @@ def current_shopify_session ShopifyApp::Logger.warn("No cookies have been found - cookie name: #{cookie_name}") nil rescue ShopifyAPI::Errors::InvalidJwtTokenError - ShopifyApp::Logger.warn("Invalid JWT token for current Shopify session") + ShopifyApp::Logger.warn("Invalid JWT token for current Shopify session: #{$!.message}") nil end end