jwt-service
A high-performance async library for JWT (JSON Web Token) authentication and authorization. Supports token generation, validation, and custom claims with optimized memory usage, ideal for HTTP clients/servers and web applications.
Features
- Token generation with standard and custom claims
- Token validation and verification
- Support for custom extra claims via HashMap
- Configurable expiration and issuer settings
- Full serialization/deserialization support with Serde
- Error handling with detailed validation errors
Installation
To use this crate, you can run cmd:
cargo add jwt-service
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
Contact
For any inquiries, please reach out to the author at root@ltpp.vip.