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

JWT::decode() Compatibility with firebase/php-jwt:v6.9.0 #102

Closed
wants to merge 2 commits into from

Conversation

zoghal
Copy link

@zoghal zoghal commented Oct 8, 2023

HI,
the third parameter JWT::decode() in firebase/php-jwt:v6.9.0 is changed.
With these changes, I tried to solve this incompatibility problem.
I hope I have done this correctly.

@@ -221,8 +222,7 @@ protected function _decode(string $token)
try {
return JWT::decode(
$token,
$config['key'] ?: Security::getSalt(),
$config['allowedAlgs']
new key($config['key'] ?: Security::getSalt(), $config['allowedAlgs'])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be new Key not new key

@zoghal zoghal closed this Oct 31, 2024
@zoghal zoghal deleted the 9.x-cake4.4 branch October 31, 2024 09:26
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

Successfully merging this pull request may close these issues.

2 participants