I'm on Laravel 5.8, PHP 7.2. For the authentication process my application is talking an Auth Server that will give me :
Every 30 mins, I require to call the Auth endpoint with my refreshToken to request for new accessToken. After I got the 200 ok, I will then update my users table accordingly.
By refreshing page when session time-out, I shall do :
call /refreshToken API
if 200 success, update the current user record with updated accessToken from the API
use that updated accessToken from Auth::user()->accessToken to make any future API calls
I keep getting the crash on the first refresh.
I did a var_dump() to investigate further, the reason behind that crash is that my first request still using the old accessToken. I have no idea why and how on earth that this happen, but it is.
10 freelancers están ofertando el promedio de $25 para este trabajo
CAN FIX WITHIN AN HOUR. I am a Laravel expert who can fix this for you within an hour. I can get started NOW. I have got 5+ years experience working in Laravel. I can give you the best quality work you can get.