You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use credentialManager.awaitCredentials() I expect that when access token is expired then it is refreshed by refresh token with the scope I used when saved credentials to credentialsManager. credentialManager.awaitCredentials(scope: String?, minTtl: Int) function says: Params: scope - the scope to request for the access token. If null is passed, the previous scope will be kept.
But, it actually does not use previous scope. CredentialsManager line 239 does not use previously saved scope for refreshing token.
If I do not send scope into function as parameter, the scope will be just ignored.
What I expect to have:
Replace this one:
if (scope != null) {
request.addParameter("scope", scope)
}
with this one:
val scopeForRenew = scope ?: storedScope
if (scopeForRenew != null) {
request.addParameter("scope", scopeForRenew)
}
Reproduction
Sign in to the app
Wait for access token expiration
Open app again
Refresh token using credentialManager.awaitCredentials() with scope == null
Expected: access token is refreshed using previously stored scope.
Actual: scope is ignored for refreshing token.
Additional context
No response
Auth0.Android version
2.10.2
Android version(s)
Any
The text was updated successfully, but these errors were encountered:
Checklist
Description
Library version: 2.10.2.
When I use
credentialManager.awaitCredentials()
I expect that when access token is expired then it is refreshed by refresh token with the scope I used when saved credentials to credentialsManager.credentialManager.awaitCredentials(scope: String?, minTtl: Int)
function says:Params: scope - the scope to request for the access token. If null is passed, the previous scope will be kept.
But, it actually does not use previous scope.
CredentialsManager line 239
does not use previously saved scope for refreshing token.If I do not send scope into function as parameter, the scope will be just ignored.
What I expect to have:
Replace this one:
with this one:
Reproduction
credentialManager.awaitCredentials()
withscope == null
Expected: access token is refreshed using previously stored scope.
Actual: scope is ignored for refreshing token.
Additional context
No response
Auth0.Android version
2.10.2
Android version(s)
Any
The text was updated successfully, but these errors were encountered: