- accountType
- The account type of the auth token to invalidate, must not be null
- authToken
- The auth token to invalidate, may be null
Removes an auth token from the AccountManager's cache. Does nothing if the auth token is not currently in the cache. Applications must call this method when the auth token is found to have expired or otherwise become invalid for authenticating requests. The AccountManager does not validate or expire cached auth tokens otherwise.
It is safe to call this method from the main thread.
This method requires the caller to hold the permission NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#MANAGE_ACCOUNTS or NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#USE_CREDENTIALS