Hi JHLEE,
The source code from the demo is based off of this repo.
https://github.com/Shopify/shopify-app-node/blob/master/pages/_app.js
Mandatory Migration Deadline:
Shopify requires all embedded apps to switch from cookie-based authentication to JWT session tokens by January 1, 2022. New apps must already comply with this requirement.
Tutorial Resource:
A comprehensive video tutorial demonstrates implementation using App Bridge and Shopify CLI. The tutorial covers:
Common Implementation Issues:
Token Expiration Concerns:
getSessionToken() method automatically polls and refreshes tokens before expirationTechnical Challenges:
Key Clarification:
Session tokens should be included with every frontend request to identify users, even for non-Shopify API calls within embedded apps.
Status: Discussion remains active with developers troubleshooting framework-specific implementations and seeking additional code examples.
Hi JHLEE,
The source code from the demo is based off of this repo.
https://github.com/Shopify/shopify-app-node/blob/master/pages/_app.js