auth_token_generator 1.2.0 copy "auth_token_generator: ^1.2.0" to clipboard
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 generateRefreshToken method for creating refresh tokens with a configurable expiration time.
  • Added validateRefreshToken method to validate refresh tokens specifically.
  • Added generateTokenWithCustomClaims method 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 decodeBearerToken method for decoding tokens without validating the signature.
  • Added isTokenExpired method to check if a token is expired based on its exp claim.
  • Updated the README with usage examples for all methods in the AuthTokenGenerator class.

[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.
4
likes
150
points
39
downloads

Publisher

verified publishermypackeges.tk

Weekly Downloads

A Dart package for generating and validating bearer tokens using HMAC-SHA256 encryption.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

crypto

More

Packages that depend on auth_token_generator