为什么我把TOKEN有效期设置为60秒,超过60秒后再访问仍然有效果
protected function respondWithToken($token)
{
return response()->json([
'access_token' => $token,
'token_type' => 'Bearer',
'expires_in' => auth('api')->factory()->getTTL() * 1 // 改为1分钟了,但超过了还可以访问
]);
}
推荐文章: