WebTokenRequestResult.InvalidateCacheAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for