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