Skip to content
Snippets Groups Projects
Commit 904bb6c8 authored by Félix  Sidokhine's avatar Félix Sidokhine Committed by Adrien Béraud
Browse files

token now returns expiration time in seconds

Change-Id: I70e70ed3c6a2e93bd54de4e7f8e56adbd05e3fae
parent 7d3f0a41
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ public class TokenController{
signedJWT.sign(new RSASSASigner(signingKey));
UserAuthenticationModule.datastore.getJwtDao().storeObject(signedJWT);
authTokenResponse.setAccess_token(signedJWT.serialize());
authTokenResponse.setExpires_in(30*60*1000L);
authTokenResponse.setExpires_in(30*60L);
authTokenResponse.setToken_type("Bearer");
return authTokenResponse;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment