Kyon147 / laravel-shopify

A full-featured Laravel package for aiding in Shopify App development
MIT License
363 stars 107 forks source link

Potential Bug: Session token is invalid #314

Closed talktohenryj closed 3 months ago

talktohenryj commented 4 months ago

For bug reporting only! If you're posting a feature request or discussion, please ignore.

Expected Behavior

I expect to get the session token anytime someone uses the app. Most of the time I do get the session token but it seems on occasion I do not.

Current Behavior

I am not sure when or how it happens but because I don't have the session token I cannot run my code that checks if a user has my theme app extension on which is required for my app

Failure Information

I don't have much more than I explained but the error is thrown on line 165 in the VerifyShopify file.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

I don't know how to reproduce as this happens pretty randomly it seems.

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Failure Logs

Screenshot 2024-05-16 at 3 59 05 PM

Kyon147 commented 3 months ago

If you are using blade then the session token is gabbed by polling with some JS but it is not consistent always and is only a basic example.

If you wanted to look at a better way, interceptors in axios are a good idea.

Kyon147 commented 3 months ago

I don't think this is a bug based on testing, but reopen if needed with more information