clearApiCredentials method

Future<void> clearApiCredentials({
  1. required String audience,
  2. String? scope,
})

No-op on the web, kept for cross-platform API parity.

auth0-spa-js manages API token caching internally and exposes no single-audience eviction API, so this completes without removing anything and logs a warning to the browser console. The audience and scope arguments are accepted only for consistency with the mobile API.

Implementation

Future<void> clearApiCredentials({
  required final String audience,
  final String? scope,
}) =>
    Auth0FlutterWebPlatform.instance.clearApiCredentials(
      ClearApiCredentialsOptions(audience: audience, scope: scope),
    );