I have a web app built in Laravel where I have used
$token = $user->createToken($device_name)->plainTextToken;
for login and other stuff.
So the thing is that it is not showing me the updated data from the database it is showing me the data available in the database before loggin in.
Ex: (Loggedin) Someone sent me the friend request I refresh the API nothing received
(Re loggin) request received.
I was expecting it to return the new and updated data every time I refresh the api. Now I have to re login to get the updated data.