code: public String create(Consumer<JWTCreator.Builder> jwtBuilderConsumer) {
          Date issueTime = new Date();
          Date expirationTime = new Date(issueTime.getTime() + defaultExpirationMs);
          JWTCreator.Builder builder = JWT.create()
                  // opinionated creation, we enforce using an expiration
                  .withIssuer(issuer)
                  .withIssuedAt(issueTime)
                  .withExpiresAt(expirationTime);
          // apply any additional token customisation
          jwtBuilderConsumer.accept(builder);
          return sign(builder);
      }
docs: Creates a JWT token.
  @param jwtBuilderConsumer a way for you to customise the token using a lambda function
  @return token with the issuer and default expiration set.