removeCachedAuthToken method
Removes an OAuth2 access token from the Identity API's token cache.
If an access token is discovered to be invalid, it should be
passed to removeCachedAuthToken to remove it from the
cache. The app may then retrieve a fresh token with
getAuthToken
.
|details| : Token information. |callback| : Called when the token has been removed from the cache.
Implementation
Future<void> removeCachedAuthToken(InvalidTokenDetails details) async {
await promiseToFuture<void>(
$js.chrome.identity.removeCachedAuthToken(details.toJS));
}