Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iygwei opened this issue Nov 1, 2022 · 2 comments

Comments

@iygwei
Copy link

iygwei commented Nov 1, 2022

image

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

@iygwei
Copy link
Author

iygwei commented Nov 1, 2022

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

@iygwei
Copy link
Author

iygwei commented Nov 1, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant