I have a feeling that my Session::flush() is not getting flush.
Code
...codes ...
$user = User::where('uuid',$refreshTokenResult['uuid'])->first();
$user->accessToken = $refreshTokenResult['access_token'];
$user->save();
Session::forget('user');
Session::flush();
Session::save();
Session::put('user', $user);
...codes ...
I thought we suppose to use only this Session::flush();. In addition to that, I even tried Session::save();.
It produces the same result.
Result,
Because of that my Session::get('user') will have old data like token, etc, then, I can NOT call any APIs because the token used was expired.
Any hints on how to debug this further?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire