Closed sudharshan-tagalys closed 1 month ago
Update: I could able to figure out this issue is due to blocking of third party cookie in incognito. Also, I could see there's a allow_jwt_authentication
option available.
Is just allow_jwt_authentication
setting to true is enough? I am not able to find much documentation on setting up JWT with shopify_app gem. Any doc links or instruction would be truly helpful.
Hi there 👋
You will want to take a look at the upgrading to v.19.0.0 migration guide. And the related documentation in shopify-api-ruby. For the process of upgrading your application from cookies to session tokens.
Hi,
I can use shopify_app 18.1.3 gem and still be able to transition to use session tokens(using config.allow_jwt_authentication
) right?
Yes you should be able to use session tokens. Take a look at the documentation here
Hi @lizkenyon, in order for my app to work as embedded, what is the lowest shopify_app
version required?
I recommend upgrading to v19.0 for better JWT session token support.
We are closing this issue because we did not hear back regarding additional details we needed to resolve this issue. If the issue persists and you are able to provide the missing clarification we need, feel free to respond and reopen this issue.
We appreciate your understanding as we try to manage our number of open issues.
Shopify app version:
shopify_app
version: 18.1.3Expected behavior
What do you think should happen?
Actual behavior
What actually happens?
On further debugging through the shopify_app gem code, looks like the session[:shop_id] is nil and shopify_app is rendering the "request_storage_access.html.erb" which includes the "request_storage_access.js" file. This JS file is trying to access the sessionStorage and causing the code to crash as the third-party cookies are disabled in the incognito.
Other information: ShopifyApp is configured to use
allow_cookie_authentication
and is set totrue
.How can I resolve this issue?