Is it possible with https://github.com/tymondesigns/jwt-auth to get the current user? Because right now I can only generate a token (when a user sign in).
current user
In Laravel 7.2 if none of the above works use like this to retrive the user:
$credentials = request(['email', 'password']); if (! $token = auth('api')->attempt($credentials)) { return response()->json(['error' => 'Unauthorized'], 401); } $user = auth('api')->user(); dd($user);