Respected Sir/Ma'am, when i checked Remember_me checkbox then that time token will expire after 1 minutes.
if ($request->remember_me) {
$token->expires_at = Carbon::now()->addMinutes(1);
}
The above code not work. The token doesn't expire. I will access the below route after 1 min, I want to block access of AuthController@checkAuthWorkingOrNot after 1 min when the token time expires.
Route::get('demo', 'AuthController@checkAuthWorkingOrNot')->middleware('auth:api');
Please Sir/Ma'am help me, I am new in laravel
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire