FLUTTER ECOSYSTEM

jwt_decoder

This small library helps you to decode Json Web Tokens, you can also know if a JWT is already expired.

Latest version
2.0.1
30-day downloads
572K
Likes
552
Pub points
160

Package Overview

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

Overview

The jwt_decoder package is a lightweight Dart library designed to decode JSON Web Tokens (JWTs) efficiently. It allows developers to extract payload data from JWTs and check whether the token has expired. Built with simplicity in mind, it supports all major platforms including Android, iOS, Web, macOS, Windows, and Linux. The package is ideal for applications requiring secure token handling, such as authentication systems or API integrations that rely on JWTs for user session management.

Use cases
  • Parsing JWT payloads in authentication flows
  • Validating token expiration before API calls
  • Extracting user claims from tokens
  • Integrating JWT-based auth in cross-platform apps
  • Debugging JWT structure during development
Key features
  • Simple decoding of JWTs
  • Built-in expiration checking
  • Cross-platform compatibility
  • Lightweight and minimal dependencies
  • Supports all Flutter platforms
Suitable for
  • Flutter apps using JWT authentication
  • Developers needing quick JWT inspection
  • Backend integration with JWT tokens
  • Apps requiring secure token validation
Considerations
  • Does not verify JWT signatures
  • Only decodes, does not validate authenticity
  • Not suitable for production security checks without additional verification
  • Requires external logic for signature validation
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add jwt_decoder

Categories

Source repository

Related projects

Rankings