clearAuthCache method

Future<void> clearAuthCache()

Clears any client side cache that might be holding invalid tokens.

If client runs into 401 errors using a token, it is expected to call this method and grab authHeaders once again.

Implementation

Future<void> clearAuthCache() async {
  final String token = (await authentication).accessToken!;
  await onClearAuthCache(token: token);
}