hive_cookie_store 0.1.0 copy "hive_cookie_store: ^0.1.0" to clipboard
hive_cookie_store: ^0.1.0 copied to clipboard

A cookie store implementation for the `cookie_jar` package that uses Hive for persistence and encryption.

example/lib/main.dart

import 'package:cookie_jar/cookie_jar.dart';
import 'package:hive_cookie_store/hive_cookie_store.dart';

Future<void> main() async {
  final cipher = await EncryptionHelper.generateCipher(key: 'testKey');

  final storage = HiveCookieStorage(
    boxName: 'box',
    encryptionCipher: cipher,
  );

  //? use the storage with the [HiveCookieJar]

  final jar = HiveCookieJar(
    storage: storage,
    ignoreExpires: true,
  );

  //? or use the storage directly with the [PersistCookieJar]

  final persistJar = PersistCookieJar(
    storage: storage,
    ignoreExpires: true,
  );
}
1
likes
160
points
168
downloads

Publisher

verified publisherfurkankurt.com.tr

Weekly Downloads

A cookie store implementation for the `cookie_jar` package that uses Hive for persistence and encryption.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

cookie_jar, flutter, flutter_secure_storage, hive

More

Packages that depend on hive_cookie_store