Skip to content

Commit bffd175

Browse files
authored
Update SsoAccessTokenProvider.kt
1 parent 554b331 commit bffd175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/credentials/sso/SsoAccessTokenProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ class SsoAccessTokenProvider(
345345
result: Result
346346
) {
347347
val tokenCreationTime = currentToken.createdAt
348-
val sessionDuration = Duration.between(Instant.now(clock), tokenCreationTime)
348+
val sessionDuration = Duration.between(tokenCreationTime, Instant.now(clock))
349349
val credentialSourceId = if (currentToken.ssoUrl == SONO_URL) CredentialSourceId.AwsId else CredentialSourceId.IamIdentityCenter
350350

351351
if (tokenCreationTime != Instant.EPOCH) {

0 commit comments

Comments
 (0)