server/config/autoload/jwt.php

26 lines
511 B
PHP

<?php
declare(strict_types=1);
use function Hyperf\Support\env;
/**
* This file is part of hyperf-ext/jwt
*
* @link https://github.com/hyperf-ext/jwt
* @contact eric@zhu.email
* @license https://github.com/hyperf-ext/jwt/blob/master/LICENSE
*/
return [
// 公钥
'public' => env('JWT_PUBLIC_KEY'),
// 私钥
'private' => env('JWT_PRIVATE_KEY'),
// 发行人
'iss' => 'leapy.cn',
// 使用者
'aud' => 'member',
// 过期时间
'ttl' => 30 * 24 * 60 *60
];