How can I access Shopify session in a React public app?

MyReportify
Shopify Partner
7 0 1

hi,
i want to get shopify session in react public app for shopify to send it to backend in the api headers.

i have node.js in backend and next.js in reactjs frontend,

i tried all official approaches from shopify and not worked for me.
anyone can help ??

Replies 2 (2)

arivusurya
Shopify Partner
2 0 0

did you solve this ?

 

MyReportify
Shopify Partner
7 0 1

I used simple koa shopify auth library in the nodejs backend code and put the backend on subdomain under the main domain (front end domain) so both of them could see the same cookies