env('API_AUTH_TOKEN_SECRET', ''), // auth-token 时间戳允许误差(秒),防重放,默认 300 秒 'auth_token_time_tolerance' => (int) env('API_AUTH_TOKEN_TIME_TOLERANCE', 300), // auth-token 有效期(秒),默认 24 小时 'auth_token_exp' => (int) env('API_AUTH_TOKEN_EXP', 86400), // auth-token 按设备存储的 Redis key 前缀(同一设备只保留最新一个 auth-token) 'auth_token_device_prefix' => env('API_AUTH_TOKEN_DEVICE_PREFIX', 'api:auth_token:'), // user-token 有效期(秒),默认 7 天 'user_token_exp' => (int) env('API_USER_TOKEN_EXP', 604800), // 用户信息 Redis 缓存过期时间(秒),默认 7 天 'user_cache_expire' => (int) env('API_USER_CACHE_EXPIRE', 604800), // 用户缓存 Redis key 前缀 'user_cache_prefix' => env('API_USER_CACHE_PREFIX', 'api:user:'), // 用户信息加密密钥(用于 Redis 中 value 的加密),建议 32 位 'user_encrypt_key' => env('API_USER_ENCRYPT_KEY', 'dafuweng_api_user_cache_key_32'), ];