AuthHandler constructor
AuthHandler({
- required Dio dio,
- required RestApiClientOptions options,
- required AuthOptions authOptions,
- required ExceptionOptions exceptionOptions,
- required LoggingOptions loggingOptions,
- 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,
);
}