diff --git a/src/main/java/cloudgene/mapred/core/JWTUtil.java b/src/main/java/cloudgene/mapred/core/JWTUtil.java index 790d3c63..071678bf 100644 --- a/src/main/java/cloudgene/mapred/core/JWTUtil.java +++ b/src/main/java/cloudgene/mapred/core/JWTUtil.java @@ -47,7 +47,7 @@ public static ApiToken createApiToken(User user, String secretKey, int lifetime) playload.put("mail", user.getMail()); playload.put(ATTRIBUTE_API_HASH, hash); playload.put("api", true); - String token = JWT.generate(playload, secretKey, lifetime); + String token = JWT.generate(playload, secretKey, lifetime * 1000L); Date expiresOn = new Date(System.currentTimeMillis() + (lifetime * 1000L));