From f2b338c000db516d35254c1a8045ec602eeab645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Semih=20O=CC=88zko=CC=88rog=CC=86lu?= Date: Wed, 2 Feb 2022 10:35:25 +0300 Subject: [PATCH] - jwt io updated --- rbs/build.gradle | 2 +- rbs/src/main/java/com/rettermobile/rbs/util/TokenManager.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rbs/build.gradle b/rbs/build.gradle index 14b1da9..e87488c 100644 --- a/rbs/build.gradle +++ b/rbs/build.gradle @@ -43,7 +43,7 @@ dependencies { implementation "androidx.preference:preference-ktx:1.1.1" // JWT - implementation 'com.auth0.android:jwtdecode:2.0.0' + implementation 'com.auth0.android:jwtdecode:2.0.1' // Coroutines implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2' diff --git a/rbs/src/main/java/com/rettermobile/rbs/util/TokenManager.kt b/rbs/src/main/java/com/rettermobile/rbs/util/TokenManager.kt index 83722e5..e73f7fc 100644 --- a/rbs/src/main/java/com/rettermobile/rbs/util/TokenManager.kt +++ b/rbs/src/main/java/com/rettermobile/rbs/util/TokenManager.kt @@ -97,7 +97,7 @@ object TokenManager { } } - fun calculateDelta() { + private fun calculateDelta() { accessToken?.jwtIat()?.let { iat -> val diff = (System.currentTimeMillis() / 1000) - iat RBSLogger.log("TokenManager.tokenInfo set time difference $diff")