work/config/jwt.php
vilson 9a554244cb 增加任务标签
Signed-off-by: vilson <545522390@qq.com>
2019-02-16 12:18:11 +08:00

17 lines
351 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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