-
Notifications
You must be signed in to change notification settings - Fork 723
Open
Description
Overview/summary
Hi,
The current documentation for EnsureAuthenticatedLinks is really sparse. It simply says "Designed to be more of a lightweight session concern specifically for XHR requests. Where EnsureHasSession does far more than just session management, this concern will redirect to the splash page of the app if no active session was found."
Can you please elaborate on it to add instructions on how to use it? For example:
- I assume
EnsureAuthenticatedLinksgoes inAuthenticatedController, but is it required to come afterinclude ShopifyApp::EnsureHasSessionor is it not even needed ifEnsureHasSessionis included? For example, we noticed that havingEnsureAuthenticatedLinkscome beforeEnsureHasSessioncausesAbstractController::DoubleRenderError. - Is
EnsureAuthenticatedLinksrequired for Turbo / TurboLinks if we already get the token viaapp-bridge.js -> shopify.idToken();and pass it via XHR requests? - Does
config.embedded_redirect_urlinshopify_app.rbneed to be set as well? If so, what should it be set to? Is it supposed to be set toroot_pathor path that gets the token viaapp-bridge.js -> shopify.idToken();(i.e.SplashPageController)?
Metadata
Metadata
Assignees
Labels
No labels