work/config/jwt.php

17 lines
351 B
PHP
Raw Normal View History

<?php
return [
// 加密key
'key' => 'pearProject',
'alg' => 'HS256',
//access_token有效时间
'accessTokenExp' => 3600 * 24 * 7,
//refresh_token有效时间
'refreshTokenExp' => 3600 * 24 * 7,
//签发者 可选
'iss' => '',
//接收该JWT的一方可选
'aud' => '',
'tokenType' => 'bearer',
];