Skip to content
Advertisement

int io.jsonwebtoken.SignatureAlgorithm.getMinKeyLength()’ no such method error while generating a token key for authentication

Hello all I am trying to use JJWT to generate a security token for authenticating users. But getting this error. Here is my pom.xml file:

JavaScript

Here is my method to generate a token if needed

JavaScript

How to solve this problem? I tryed before to changed version of jjwt to 0.11.2 but got a build eror it couldn’t find a jar file.

My full stack trace

JavaScript

Advertisement

Answer

You did not implement right io.jsonwebtoken dependencies.
These are the three dependencies you have to implement correctly;

JavaScript
Advertisement