Skip to content

Commit

Permalink
Debug log missed session loads in app proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
paulomarg committed Apr 29, 2024
1 parent db1247e commit 5c72853
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fifty-queens-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@shopify/shopify-app-remix": patch
---

Added debugging for request information when we fail to find a session during app proxy authentication.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ export function authenticateAppProxyFactory<
const session = await config.sessionStorage.loadSession(sessionId);

if (!session) {
logger.debug('Could not find offline session, returning empty context', {
shop,
...Object.fromEntries(url.searchParams.entries()),
});

const context: AppProxyContext = {
liquid,
session: undefined,
Expand Down

0 comments on commit 5c72853

Please sign in to comment.