Metadata-Version: 2.4
Name: jwt_manager
Version: 0.1.0
Summary: A lightweight utility to create, validate, and refresh JWT tokens easily.
Home-page: https://github.com/your_github_username/jwt_manager
Author: Faizan Utilities
Author-email: support@example.com
Project-URL: Bug Tracker, https://github.com/your_github_username/jwt_manager/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: PyJWT
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: project-url
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary


# JWTManager - A Lightweight JWT Utility Package

JWTManager is a lightweight and simple Python utility package for handling JSON Web Tokens (JWT). 
It allows you to easily create, validate, and refresh JWT tokens, with built-in customizable expiration, multiple algorithms, and custom exception handling.

## Features
- Create JWT access tokens with customizable expiration
- Validate JWT tokens securely
- Refresh expired or about-to-expire tokens
- Supports HS256, HS384, HS512 algorithms
- Built-in logging for important events
- Custom exception handling for token errors

## Installation
```bash
pip install jwt_manager
```

## Usage
```python
from jwt_manager import JWTManager, InvalidTokenError

# Secret key
secret = "my_secret_key"

# Create a token
token = JWTManager.create_token({"user_id": 123}, secret, expiry_minutes=30)

# Validate the token
try:
    payload = JWTManager.validate_token(token, secret)
except InvalidTokenError:
    print("Token is invalid!")

# Refresh the token
new_token = JWTManager.refresh_token(token, secret, additional_minutes=60)
```

## License
This project is licensed under the MIT License.
