-
hello @kinngh, came across another problem. If I would like to access user's current session information similar to the shopify turorial here its' line 20 in their app._index.jsx The example is with remix Is there something equivalent I can do on the client side with your project? Thanks for your help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'm guessing you want to make calls to Shopify to fetch orders / products / something else, and you're better off making an Express route and pulling in that way. Use |
Beta Was this translation helpful? Give feedback.
session
client side - it's not safe since you're exposing user's online session tokens and your app's static offline tokens.res.locals.user_session
that is exposed fromverifyRequest
to get user's online session tokens.I'm guessing you want to make calls to Shopify to fetch orders / products / something else, and you're better off making an Express route and pulling in that way. Use
clientProvider
to make requests instead of having to worry about doing it manually. Also, since you're using this as a starter, please spend some time going through every middleware and util function th…