auth_token_generator 1.2.0
auth_token_generator: ^1.2.0 copied to clipboard
A Dart package for generating and validating bearer tokens using HMAC-SHA256 encryption.
1.2.0 - 2025-01-02 #
- Added
generateRefreshTokenmethod for creating refresh tokens with a configurable expiration time. - Added
validateRefreshTokenmethod to validate refresh tokens specifically. - Added
generateTokenWithCustomClaimsmethod for generating tokens with custom claims. - Updated the README with examples for the newly added methods.
- Improved documentation and inline comments for clarity.
1.1.0 - 2024-12-30 #
- Added
decodeBearerTokenmethod for decoding tokens without validating the signature. - Added
isTokenExpiredmethod to check if a token is expired based on itsexpclaim. - Updated the README with usage examples for all methods in the
AuthTokenGeneratorclass.
1.0.0 - 2024-06-16 #
- Initial version of
auth_token_generator. - Implemented methods for generating and validating bearer tokens using HMAC-SHA256 encryption.
- Included methods for extracting user IDs and verifying token expiration.