class JwtToken {

    public String generateToken(AccountInfo accountInfo) {
        return Jwts.builder()
                .claim("salt", SALT)
                .claim("userinfo", JacksonUtil.serialize(accountInfo))
                .setSubject(accountInfo.getAccount())
                .setExpiration(new Date(System.currentTimeMillis() + EXPIRE))
                .signWith(key).compact();
    }

}