yasii92
yasii92

Reputation: 89

Error: Lcobucci\JWT\UnencryptedToken cannot implement Lcobucci\JWT\Token - it is not an interface

I have used LexikJWTAuthenticationBundle to implement JWT-based authentication for my Symfony project. I have followed the steps given in a couple of guides and all of them are identical. Following is a one reference link https://symfony.com/bundles/LexikJWTAuthenticationBundle/current/index.html .

After following the given steps I get the following error when trying to get a token and this is coming for all routes which need authentication as well. Anything that I have done wrong here?

enter image description here

Upvotes: 0

Views: 898

Answers (1)

SuperBob
SuperBob

Reputation: 86

You are probably using a too old version of lcobucci/jwt

Update it.

composer require lcobucci/jwt:^4.0

Upvotes: 1

Related Questions