Jaa


WebTokenRequestResult.InvalidateCacheAsync Method

Definition

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

public:
 virtual IAsyncAction ^ InvalidateCacheAsync() = InvalidateCacheAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction InvalidateCacheAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction InvalidateCacheAsync();
function invalidateCacheAsync()
Public Function InvalidateCacheAsync () As IAsyncAction

Returns

This method does not return an object or value.

Attributes

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.

Applies to

See also