AuthHandler constructor

AuthHandler({
  1. required Dio dio,
  2. required RestApiClientOptions options,
  3. required AuthOptions authOptions,
  4. required ExceptionOptions exceptionOptions,
  5. required LoggingOptions loggingOptions,
  6. required ExceptionHandler exceptionHandler,
})

Implementation

AuthHandler({
  required this.dio,
  required this.options,
  required this.authOptions,
  required this.exceptionOptions,
  required this.loggingOptions,
  required this.exceptionHandler,
}) {
  _storage = authOptions.useSecureStorage
      ? SecureStorageRepositoryImpl(
          key: RestApiClientKeys.storageKey,
          logPrefix: RestApiClientKeys.storageLogPrefix,
        )
      : StorageRepositoryImpl(
          key: RestApiClientKeys.storageKey,
          logPrefix: RestApiClientKeys.storageLogPrefix,
        );
}