AppAuth-Android icon indicating copy to clipboard operation
AppAuth-Android copied to clipboard

Get Expired token when Using " performActionWithFreshTokens " to refresh token

Open MarkMagdyHelm opened this issue 3 years ago • 2 comments

#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

MarkMagdyHelm avatar Feb 08 '23 19:02 MarkMagdyHelm

facing same.

deepakkanyan avatar Apr 17 '24 07:04 deepakkanyan