refreshToken method

Future<void> refreshToken()

Manually refreshes the cached token.

Useful when you update the local user representation and want the claims to be refreshed immediately.

Implementation

Future<void> refreshToken() async {
  _cachedToken = null;
  await _ensureToken();
}