LeNelSoN / you-are-the-hero

L'API dont vous êtes le héros is an interactive Java API that brings the adventure of "choose your own adventure" stories to life. Users can embark on unique journeys, make decisions at each step, and create dynamic narratives, all while experiencing the nostalgia of classic adventure books.
GNU General Public License v3.0
2 stars 10 forks source link

Problem with extractAllClaims Method After Dependency Update #19

Closed LeNelSoN closed 2 months ago

LeNelSoN commented 2 months ago

Description

After updating the project dependencies, I encountered an issue with the extractAllClaims method in the JwtUtil class. The following line is no longer functioning as expected:

private Claims extractAllClaims(String token) {
    return Jwts.parser().setSigningKey(SECRET_KEY).parseClaimsJws(token).getBody();
}

Context

It seems that the updates to the jjwt library have resulted in changes to the API, which may explain the error. I suspect that the method used to parse the token and retrieve the claims needs to be modified.