laravel-shopify icon indicating copy to clipboard operation
laravel-shopify copied to clipboard

Token verification creates redirect loop

Open npabisz opened this issue 2 years ago • 1 comments

I just discovered that one on my apps has issue with token verification which makes redirect loop for x seconds for the first time app is opened. I'm talking about src/Objects/Values/SessionToken.php#269 which was triggering assertion. What I found out was that my server had not synchronized time. Steps to fix:

sudo apt install systemd-timesyncd
sudo systemctl start systemd-timesyncd

However maybe there should be some warning/error saying that there is issue with time instead of tons of redirects.

npabisz avatar Jul 29 '22 14:07 npabisz

hi @npabisz

Good catch, are you up for creating a PR with a potential solution?

Kyon147 avatar Aug 09 '22 07:08 Kyon147