Skip to content

Commit 1e23c86

Browse files
Update PrivacyIDEA.java
1 parent 01eb016 commit 1e23c86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/privacyidea/PrivacyIDEA.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ private void retrieveAuthToken()
371371
LinkedHashMap<String, String> authTokenMap = parser.extractAuthToken(response);
372372
this.authToken = authTokenMap.get(AUTH_TOKEN);
373373
int authTokenExp = Integer.parseInt(authTokenMap.get(AUTH_TOKEN_EXP));
374+
log("Auth token expires in: " + (authTokenExp - System.currentTimeMillis() / 1000L) + " seconds.");
374375

375376
// Schedule the next token retrieval to 1 min before expiration
376377
long delay = authTokenExp - 60 - System.currentTimeMillis() / 1000L;

0 commit comments

Comments
 (0)