AppAuth-Android
AppAuth-Android copied to clipboard
Get Expired token when Using " performActionWithFreshTokens " to refresh token
#On latest version implementation 'net.openid:appauth:0.11.1'
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
facing same.