Android.Accounts.AccountManager.InvalidateAuthToken Method
Removes an auth token from the AccountManager's cache.

Syntax

[Android.Runtime.Register("invalidateAuthToken", "(Ljava/lang/String;Ljava/lang/String;)V", "GetInvalidateAuthToken_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual void InvalidateAuthToken (string accountType, string authToken)

Parameters

accountType
The account type of the auth token to invalidate, must not be null
authToken
The auth token to invalidate, may be null

Remarks

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

[Android Documentation]

Requirements

Namespace: Android.Accounts
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5