Skip to content
pubscout

jwt_io

1.1.6, released 6 years ago by glynskyi.com

Decode, verify, and generate JSON Web Tokens (JWT) in Dart.

WASM-ready
$ flutter pub add jwt_io
Source repository

What it does

JWT_IO allows you to decode JSON Web Tokens, verify their expiration status, get exact expiration dates, and check how old a token is based on its payload.

AI-written summary of version 1.1.6, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to decode JWT payloads in your Dart or Flutter application.
  • You need to check if a token has expired or find its expiration date.
  • You need a cross-platform solution supporting mobile, web, and desktop.

Skip it when

  • You need a comprehensive auth suite with social login and OAuth handling built-in.
  • The package lacks a specific advanced feature documented in newer RFCs.

Strengths

  • Simple static utility methods for easy token inspection.
  • Supports all major platforms including Android, iOS, Web, Windows, macOS, and Linux.
  • Zero dependencies.

Weaknesses

  • Limited documentation and examples beyond basic payload decoding and expiration checks.
  • Not documented as a full auth manager.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
String yourToken = "Your JWT";
Map<String, dynamic> decodedToken = JwtToken.payload(yourToken);

Alternatives

Packages that do the same job and could replace jwt_io.