currentState?.performActionWithFreshTokens(authService, clientAuth,
AuthStateAction { accessToken, idToken, ex ->
if (ex != null) {
when (ex.code) {
2002 -> {
doAuthorization(devicePersistenceManager, context, authService)
}
}
Issue description
After checking the expiration date of the current token and found it expired ,after that i tried to get new valid token from the sdk by using performActionWithFreshTokens as the above code the sdk sometimes returns expired token on the successful callback with expired date
On latest version
Part of the Code
currentState?.performActionWithFreshTokens(authService, clientAuth, AuthStateAction { accessToken, idToken, ex -> if (ex != null) { when (ex.code) { 2002 -> { doAuthorization(devicePersistenceManager, context, authService) } }
Issue description
After checking the expiration date of the current token and found it expired ,after that i tried to get new valid token from the sdk by using performActionWithFreshTokens as the above code the sdk sometimes returns expired token on the successful callback with expired date