Skip to content
pubscout

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
$ flutter pub add oidc_default_store
Source repository

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.