jwt
jwt copied to clipboard
Argument 2 passed to HyperfExt\\Jwt\\Blacklist::__construct() must be of the type int, null given, called in
按照官网这个例子就报错了 是我的姿势不对吗
'blacklist_grace_period' =>(int)env('JWT_BLACKLIST_GRACE_PERIOD', 0), 'refresh_ttl' => (int)env('JWT_REFRESH_TTL', 3600 * 24 * 14), 需要在这两个地方强制指定类型
用Firebase\JWT\JWT::decode($token, 'base64:fm9o9b+E4GfP1AHKr38fiRpQWIMcfXCDf2ADnSxhIVW4=', ['HS256'])
可以解出来$jwt->getManager()->decode($jwt->getToken(), false, true)解不出来了Token Signature could not be verified