Hi Vasily,
Ville Virta

Hello Ville,

Shopify passes all the parameters needed for re-validation in the get parameters.

After the initial verification, what I do is continue to pass along those params through the application. For example if I am linking to a settings page in an app I’d use the following code:

{{ url_for(‘shopify_bp.settings’,product_id=product.id, image_id=product.images[0].id, **request.args) }}

Note the **request.args that will pass along the parameters.

Back in the auth decorator, if session has expired, we use these params to re-authenticate and regenerate the session.

I am not sure if this is the “correct” way of doing things but it worked for me. Let me know if you have any more questions and I’ll do my best to clarify :)


One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.