Sep 4, 2018
0
Level 1
JWT redirect middleware
I use cURL requests . And ı use JWT Token .
Plugin : https://github.com/tymondesigns/jwt-auth
$this->middleware('auth:api', ['except' => ['login']]);
If I use this code in the constructor method, the page is refreshed in the intermediate layer and it leads to the login page.
If I do not use it I am logged in as it is, but Auth :: id (); function does not return results.
Please or to participate in this conversation.