AuthHandler constructor

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

Implementation

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