message: Use base64 to encode the JWT token
diff: @@ -2,6 +2,7 @@ package io.github.jhipster.registry.security.jwt;
  import io.github.jhipster.config.JHipsterProperties;
  +import java.nio.charset.StandardCharsets;
  import java.util.*;
  import java.util.stream.Collectors;
  import javax.annotation.PostConstruct;
  @@ -27,6 +28,8 @@ public class TokenProvider {
  private static final String AUTHORITIES_KEY = "auth";
  + private final Base64.Encoder encoder = Base64.getEncoder();
  +
  private String secretKey;
  private long tokenValidityInMilliseconds;
  @@ -41,16 +44,17 @@ public class TokenProvider {
  @PostConstruct
  public void init() {
  - this.secretKey =
  - jHipsterProperties.getSecurity().getAuthentication().getJwt().getSecret();
  + this.secretKey = encoder.encodeToString(jHipsterProperties.getSecurity().getAuthentication().getJwt()
  + .getSecret().getBytes(StandardCharsets.UTF_8));
  this.tokenValidityInMilliseconds =
  1000 * jHipsterProperties.getSecurity().getAuthentication().getJwt().getTokenValidityInSeconds();
  this.tokenValidityInMillisecondsForRememberMe =
  - 1000 * jHipsterProperties.getSecurity().getAuthentication().getJwt().getTokenValidityInSecondsForRememberMe();
  + 1000 * jHipsterProperties.getSecurity().getAuthentication().getJwt()
  + .getTokenValidityInSecondsForRememberMe();
  }
  - public String createToken(Authentication authentication, Boolean rememberMe) {
  + public String createToken(Authentication authentication, boolean rememberMe) {
  String authorities = authentication.getAuthorities().stream()
  .map(GrantedAuthority::getAuthority)
  .collect(Collectors.joining(","));
  @@ -84,7 +88,7 @@ public class TokenProvider {
  User principal = new User(claims.getSubject(), "", authorities);
  - return new UsernamePasswordAuthenticationToken(principal, "", authorities);
  + return new UsernamePasswordAuthenticationToken(principal, token, authorities);
  }
  public boolean validateToken(String authToken) {
  