jwt icon indicating copy to clipboard operation
jwt copied to clipboard

Argument 2 passed to HyperfExt\\Jwt\\Blacklist::__construct() must be of the type int, null given, called in

Open 449134904 opened this issue 2 years ago • 2 comments

image

按照官网这个例子就报错了 是我的姿势不对吗

449134904 avatar Nov 01 '22 07:11 449134904

'blacklist_grace_period' =>(int)env('JWT_BLACKLIST_GRACE_PERIOD', 0), 'refresh_ttl' => (int)env('JWT_REFRESH_TTL', 3600 * 24 * 14), 需要在这两个地方强制指定类型

449134904 avatar Nov 01 '22 09:11 449134904

image 用Firebase\JWT\JWT::decode($token, 'base64:fm9o9b+E4GfP1AHKr38fiRpQWIMcfXCDf2ADnSxhIVW4=', ['HS256']) 可以解出来$jwt->getManager()->decode($jwt->getToken(), false, true)解不出来了Token Signature could not be verified

449134904 avatar Nov 01 '22 11:11 449134904