mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:17:11 -05:00 
			
		
		
		
	* chore: bump dart sdk to 3.8 * chore: make build * make pigeon * chore: format files --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
		
			
				
	
	
		
			25 lines
		
	
	
		
			713 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			713 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
import 'package:hooks_riverpod/hooks_riverpod.dart';
 | 
						|
import 'package:immich_mobile/repositories/secure_storage.repository.dart';
 | 
						|
 | 
						|
final secureStorageServiceProvider = Provider(
 | 
						|
  (ref) => SecureStorageService(ref.watch(secureStorageRepositoryProvider)),
 | 
						|
);
 | 
						|
 | 
						|
class SecureStorageService {
 | 
						|
  final SecureStorageRepository _secureStorageRepository;
 | 
						|
 | 
						|
  const SecureStorageService(this._secureStorageRepository);
 | 
						|
 | 
						|
  Future<void> write(String key, String value) async {
 | 
						|
    await _secureStorageRepository.write(key, value);
 | 
						|
  }
 | 
						|
 | 
						|
  Future<void> delete(String key) async {
 | 
						|
    await _secureStorageRepository.delete(key);
 | 
						|
  }
 | 
						|
 | 
						|
  Future<String?> read(String key) async {
 | 
						|
    return _secureStorageRepository.read(key);
 | 
						|
  }
 | 
						|
}
 |