I have a callback URL(mywebsite.com/final/results), which is a POST route, like:
Route::post('final/results','FinalResultsController@someMethod')
On this route, I am waiting for data that comes like
{"trx_id":"12","session":2,"method":"do","retry":true,"minus":20,"sign":"rthrtghert", "plus":0}
When the data comes, it is handled by the someMethod on FinalResultsController Now I need to get the logged-in information so that I can be able to update the user with the information. The problem is however that when I try to get the authenticated user through auth('api')->user(). it returns null. Is there any other way I can get the logged-in user information from the API route?
My project's Laravel version is 6.