WebTokenRequestResult.InvalidateCacheAsync WebTokenRequestResult.InvalidateCacheAsync WebTokenRequestResult.InvalidateCacheAsync WebTokenRequestResult.InvalidateCacheAsync WebTokenRequestResult.InvalidateCacheAsync Method

Definition

Invalidates the current cached WebTokenRequestResult. See Remarks for proper usage.

public : IAsyncAction InvalidateCacheAsync()
IAsyncAction InvalidateCacheAsync() const;
public IAsyncAction InvalidateCacheAsync()
Public Function InvalidateCacheAsync() As IAsyncAction
Windows.Security.Authentication.Web.Core.WebTokenRequestResult.invalidateCacheAsync().done( /* Your success and error handlers */ );

Returns

This method does not return an object or value.

Remarks

While the default behavior of the Web Account Manager is to automatically remove cached tokens that become stale, there are some scenarios in which a token will stay cached even when it is not valid. If the WebTokenRequestResult indicates that the token was rejected by the server, then this method should be called to remove that token from the WAM cache and a new token should be requested.

See also