You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
We use Turbolinks and have no trouble using UJS redirect. However, if we need to do a html-based redirect, what is the proper way to do this?
In shopify_app 22.2.1, we used to do the following by adding the shop params already in the original request
In controller (after authentication):
respond_to do |format|
format.html {
@redirect_to = edit_orders_path(shop: params[:shop])
}
end
Then in html.erb, we have:
Turbolinks.visit("<%= @redirect_to %>");
However, in shopify_app 22.5.1, that doesn't work we get ShopifyAPI::Errors::InvalidJwtTokenError, with message "Error decoding session token"
Any suggestions?
The text was updated successfully, but these errors were encountered:
Thanks, that seemed to have worked. However, after the page loads, it still gets "ShopifyAPI::Errors::InvalidJwtTokenError: Error decoding session token: Signature has expired" sometimes. Is there a way to add all these helper methods to documentation? I didn't find it anywhere.
Overview/summary
Hi,
We use Turbolinks and have no trouble using UJS redirect. However, if we need to do a html-based redirect, what is the proper way to do this?
In shopify_app 22.2.1, we used to do the following by adding the
shop
params already in the original requestHowever, in shopify_app 22.5.1, that doesn't work we get
ShopifyAPI::Errors::InvalidJwtTokenError
, with message "Error decoding session token"Any suggestions?
The text was updated successfully, but these errors were encountered: