AuthCubit constructor

AuthCubit({
  1. required IAuthTokenStorage tokenStorage,
  2. INotifierService? notifier,
  3. String authFailureKey = 'auth_failure',
})

Implementation

AuthCubit({
  required IAuthTokenStorage tokenStorage,
  INotifierService? notifier,
  String authFailureKey = 'auth_failure',
})  : _tokenStorage = tokenStorage,
      _notifier = notifier,
      _authFailureKey = authFailureKey,
      super(const AuthInitial()) {
  _listenForAuthFailures();
}