Files
MBTI_wang/api/config/jwt.php
2026-03-17 12:39:38 +08:00

14 lines
388 B
PHP
Raw Permalink 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
// JWT配置
return [
// JWT密钥请在生产环境修改
'secret' => env('jwt.secret', 'mbti_jwt_secret_key_2024_change_in_production'),
// Token过期时间默认7天
'expire' => env('jwt.expire', 86400 * 7),
// Token刷新时间默认6天
'refresh_expire' => env('jwt.refresh_expire', 86400 * 6),
];