firebase_verify_token_dart 2.1.3
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_dartandhttp - update documentation
2.1.2 #
- update
ntp_dart - update documentation
2.1.1 #
- update
ntp_dartfor wasm support.
2.1.0 #
- Accelerated token verification by integrating the
ntp_dartpackage for precise UTC time retrieval. - Enhanced
onVerifySuccessfulcallback to return the verification duration in milliseconds.
2.0.3 #
- Improved verification
speedby switching to a new API for retrieving date and time in UTC. - Fixed verification issues with
iatandauthTime.
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
ntppackage 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
getUserIdByTokentogetUserIDfor clarity and consistency. - The
getUserIDmethod now returns the correct value according to Google’s documentation (sub claim). - Added the
getProjectIDmethod to extract the Firebase project ID (aud claim) from a token. - Increased the default cache duration for accurate time resolution.
- Updated
httpandjose_pluspackages. - 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
httppackage. - Updated documentation.
1.0.0 #
- Replaced
projectIdwithprojectIdsto support multi-project verification. - Added the
onVerifySuccessfulcallback function to execute code once the token is verified. - Reduced verification times by caching Google
kidsandNTP. - Updated dependencies.
- Optimized parsing algorithms.
- Clean code.
- Updated documentation.
0.0.7 #
- Publish package