Skip to content
Advertisement

Tag: php-jwt

How to call a class from vendor folder when using a composer?

I am investigating jwt token examples from this link – https://github.com/firebase/php-jwt So i run: And now i have new files and folders in my root directory of my site: vendor, composer.json and composer.lock. Folder “vendor” contents “firebase/php-jwt” folder. So i tried to run an example script inside my root site’s folder (test.php, for example) with this content: And when i

Unable to decode JWT tokens PHP

I tried to decode the given token with the code below. The key is supposed to be base64 encoded. However when I attempt to decode it tells me I have invalid signature. The token is generated from a system using Java and I have to decode it in PHP. Token: Decoding script It decodes just fine on jwt.io with the

Advertisement