getValidToken method

Future<String?> getValidToken()

Returns a valid (non-expired) token, refreshing it via the configured TokenFetcher if necessary.

Returns null if no token is available and no fetcher is configured.

Implementation

Future<String?> getValidToken() async {
  return _tokenManager.getValidToken();
}