Learn how to implement JWT based session-tokens in your Shopify App

テクノロジー



The example we go through bootstraps the Shopify CLI node app, but we go over the general principles and ideas in case you’re using another language.

0:00 Intro
1:26 What is a session token?
2:36 What’s wrong with using cookies these days?
5:01 Session token vs access token
6:54 Looking at the JWT token
16:22 Session token life cycle
18:00 Frontend implementation
28:16 Backend implementation
40:29 Using the uninstall webhook
44:52 Questions

Questions
23:22 Why not just use the offline token?
44:52 Adding a script tag
46:37 Stuck in redirect loop

Documentation links
– Overview: https://shopify.dev/concepts/apps/building-embedded-apps-using-session-tokens?utm_source=youtube&utm_medium=youtube&utm_campaign=jwt-twitch-tutorial
– Github: https://github.com/Shopify/shopify-app-node
– Tutorial: https://shopify.dev/tutorials/authenticate-your-app-using-session-tokens?utm_source=youtube&utm_medium=youtube&utm_campaign=jwt-twitch-tutorial
– Getting started with app bridge: https://shopify.dev/tools/app-bridge/getting-started?utm_source=youtube&utm_medium=youtube&utm_campaign=jwt-twitch-tutorial

Feedback
For feedback we are no longer using Sli.do. Instead we’ve setup a forum post where you can post your feedback and questions.
https://community.shopify.com/c/Shopify-APIs-SDKs/Video-tutorial-on-using-JWT-session-tokens-to-authenticate-your/m-p/1138194?utm_source=youtube&utm_medium=youtube&utm_campaign=jwt-twitch-tutorial

Also please visit our Partner Slack channel at #session-token-migration:
https://shopifypartners.slack.com/archives/C023QG1PG00

——————————–

Subscribe to our channel for more videos about developing and designing ecommerce stores, apps, and themes with Shopify » www.youtube.com/shopifydevs

Looking for more information about developing on Shopify check out www.developers.shopify.com and https://shopify.dev/

Connect with us on Twitter » www.twitter.com/shopifydevs

Launch your own online store by visiting Shopify and starting your free trial » http://bit.ly/VisitShopify

Comments

Copied title and URL