firebase_verify_token_dart 2.1.3 copy "firebase_verify_token_dart: ^2.1.3" to clipboard
firebase_verify_token_dart: ^2.1.3 copied to clipboard

Package to verify a firebase jwt token across multiple Firebase projects

Changelog #

2.1.3 #

  • update ntp_dart and http
  • update documentation

2.1.2 #

  • update ntp_dart
  • update documentation

2.1.1 #

  • update ntp_dart for wasm support.

2.1.0 #

  • Accelerated token verification by integrating the ntp_dart package for precise UTC time retrieval.
  • Enhanced onVerifySuccessful callback to return the verification duration in milliseconds.

2.0.3 #

  • Improved verification speed by switching to a new API for retrieving date and time in UTC.
  • Fixed verification issues with iat and authTime.

2.0.2 #

  • Fixed date parsing karelklic: Ensured all times are correctly interpreted as UTC to avoid timezone errors.
  • Improved claim date validation logic for token checks.

2.0.1 #

  • Removed the ntp package to ensure full compatibility with WebAssembly (WASM).

2.0.0 #

  • Improved the readability of the verify() method by introducing a dedicated helper class.
  • Renamed the method getUserIdByToken to getUserID for clarity and consistency.
  • The getUserID method now returns the correct value according to Google’s documentation (sub claim).
  • Added the getProjectID method to extract the Firebase project ID (aud claim) from a token.
  • Increased the default cache duration for accurate time resolution.
  • Updated http and jose_plus packages.
  • Added logging when JWT verification fails, to aid in debugging.
  • Improved overall documentation for better understanding and usage of the class.
  • Refactored and cleaned up the code for better performance and maintainability.

1.0.1 #

  • Updated http package.
  • Updated documentation.

1.0.0 #

  • Replaced projectId with projectIds to support multi-project verification.
  • Added the onVerifySuccessful callback function to execute code once the token is verified.
  • Reduced verification times by caching Google kids and NTP.
  • Updated dependencies.
  • Optimized parsing algorithms.
  • Clean code.
  • Updated documentation.

0.0.7 #

  • Publish package
3
likes
160
points
36
downloads

Publisher

verified publisherenzodesimone.dev

Weekly Downloads

Package to verify a firebase jwt token across multiple Firebase projects

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

http, intl, jose_plus, ntp_dart

More

Packages that depend on firebase_verify_token_dart