Closed hajimurtaza closed 3 years ago
The code in JwtProvider.java is incorrect yes, see https://github.com/SaiUpadhyayula/spring-reddit-clone/blob/master/src/main/java/com/programming/techie/springredditclone/security/JwtProvider.java#L69
You need to change this line and any other calls to the deprecated parser() method with Jwts.parserBuilder().setSigningKey(getPublicKey()).build().parseClaimsJws(jwt);
.
The parserBuilder().setSigningKey(getPublicKey()).build()
is the part that replaces the deprecated method call.
I didn't find time to check it, I can check this weekend, meanwhile if you are interested, please feel free to raise a PR :)
Issue is fixed with this PR https://github.com/SaiUpadhyayula/spring-reddit-clone/pull/16
Can you update
JwtProvider.java
file in security package since parser().setSigningKey() doesnt work anymore. Not able to find replacement solution for that as well.