we can define the JWT manager class—JwtManager. JwtManager is a custom class that is responsible for generating a new JWT. It uses the java-jwt library from auth0.com. You are going to use public/private keys for signing the token. Let's define this class, as follows: