Udinic / AccountAuthenticator

812 stars 216 forks source link

getAuthToken, getAuthTokenByFeatures returning Authtoken even after calling invalidateAuthToken #3

Closed LOG-TAG closed 7 years ago

LOG-TAG commented 11 years ago

1>calling invalidateAuthToken button The application must call invalidateAuthToken(String, String) to remove the token from the cache, but after clicking the invalidateAuthToken button if we click getAuthTokenByFeatures button it's retrieving toke from cache!!? how it's retrieving token from deleted cache??

2>If it is loading new token where is the implementation in the method invalidateAuthToken loading new token? After invalidating the auth token, where it is calling immediately go back to the "Request an auth token". (auth token generated after invalidation before invalidation is same!)

reinhardt1053 commented 7 years ago

getAuthTokenByFeatures will use the stored password to get another token. You need to call mAccountManager.clearPassword(account) to clear out the stored password (client side).

LOG-TAG commented 7 years ago

thanks @reinhardt1053