FLUTTER ECOSYSTEM

dio_cookie_manager

A cookie manager combines cookie_jar and dio, based on the interceptor algorithm.

Latest version
3.5.0
30-day downloads
155K
Likes
175
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

Dio Cookie Manager is a Flutter package that integrates cookie management with the Dio HTTP client using interceptors. It simplifies handling cookies during HTTP requests and responses, ensuring automatic storage, retrieval, and sending of cookies based on domain and path rules. Built on top of the cookie_jar library, it supports secure and efficient cookie persistence across app sessions. Ideal for applications requiring session management or authentication via cookies.

Use cases
  • Managing HTTP session cookies
  • Automating cookie handling in API requests
  • Persisting login sessions across app restarts
  • Handling CSRF tokens via cookies
  • Supporting web-like authentication flows
Key features
  • Automatic cookie storage and retrieval
  • Interceptor-based integration with Dio
  • Cross-platform cookie persistence
  • Domain and path-aware cookie management
  • Secure cookie handling with expiration support
Suitable for
  • Web-like authentication systems
  • Apps requiring stateful HTTP sessions
  • Developers using Dio for HTTP operations
  • Applications needing persistent cookie storage
  • Projects with server-side session management
Considerations
  • Requires Dio to be already integrated
  • Limited to cookie-based auth workflows
  • May require additional security checks for sensitive data
  • Not suitable for token-based auth (e.g., JWT)
  • Depends on underlying cookie_jar implementation stability
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add dio_cookie_manager

Categories

Dependencies

Dependency list 2 items

Source repository

Related projects