First thank you for this package which makes our life much easier :)
I would like to know if there is a method to get the curren authenticated user but return false if not.
I tried :
$user = JWTAuth::parseToken()->authenticate()
But this is returning a response :
{ "message": "The token could not be parsed from the request", "status_code": 500 }
I would like to return true if there is the token match an user and false in any case else.
Hi,
First thank you for this package which makes our life much easier :)
I would like to know if there is a method to get the curren authenticated user but return false if not.
I tried :
$user = JWTAuth::parseToken()->authenticate()
But this is returning a response :
{ "message": "The token could not be parsed from the request", "status_code": 500 }
I would like to return true if there is the token match an user and false in any case else.Any help ?
Thank you.