setTokens method

Future<void> setTokens(
  1. Token token
)

Persists token. Emits TokenRefreshedEvent.

Implementation

Future<void> setTokens(Token token) async {
  _checkNotDisposed();
  await _storage.write(token);
  _emit(TokenRefreshedEvent(token));
}