oidc_default_store
2.0.0, released 7 weeks ago by bdaya-dev.com
Secure OIDC token storage using flutter_secure_storage and shared_preferences
WASM-ready
What it does
Provides a default implementation of OidcStore that persists tokens and state across app launches. It uses flutter_secure_storage for sensitive data and shared_preferences for non-sensitive data, supporting Android, iOS, web, macOS, Windows and Linux.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a ready‑made, secure storage layer for an OIDC client in a Flutter app
- You want cross‑platform persistence without writing custom storage code
Skip it when
- You require a custom storage backend (e.g., a database or encrypted file)
- You are building a non‑Flutter Dart project
Strengths
- Cross‑platform support
- Secure storage via flutter_secure_storage
- Easy integration with oidc package
- No code generation required
Weaknesses
- Depends on flutter_secure_storage, which may need platform‑specific setup
- Limited to key‑value storage, not full database features
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 6
Add oidc_default_store to pubspec.yaml and run flutter pub get. No additional permissions or build_runner needed.
Works with
Packages commonly used together with oidc_default_store: ones it builds on, ones built on it, and its own family.
- weboidc_default_store depends on itLightweight bindings for browser APIs via JS interop
- asyncoidc_default_store depends on itUtility classes and helpers that extend Dart's async library.
- loggingoidc_default_store depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- shared_preferencesoidc_default_store depends on itFlutter plugin for reading and writing simple key-value pairs. Wraps NSUserDefaults on iOS and SharedPreferences on Android.
- flutter_secure_storageoidc_default_store depends on itSecure key-value storage using platform-specific secure mechanisms
- oidcSame familyOpenID Connect RP plugin for Flutter supporting all platforms.
- solid_authBuilt on oidc_default_storeAuthenticate to a Solid POD server using Solid-OIDC with certified oidc.