不明白 token_type 等于 Bearer 的作用
对于
return $this->response->array([
'access_token' => $token,
'token_type' => 'Bearer',
'expires_in' => Auth::guard('api')->factory()->getTTL() * 60
]);
中的 'token_type' => 'Bearer'
不是很明白为什么要加这个键值对,不知道作者能不能对这些 Authorization 的 type 值做个大致的解释.
谢谢.
推荐文章: