diff --git a/README.md b/README.md index 7fd474b..8521bf8 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,6 @@ Ellar Logo

-

A rate limiting module for Ellar

- ![Test](https://github.com/eadwinCode/ellar-jwt/actions/workflows/test_full.yml/badge.svg) ![Coverage](https://img.shields.io/codecov/c/github/eadwinCode/ellar-jwt) [![PyPI version](https://badge.fury.io/py/ellar-jwt.svg)](https://badge.fury.io/py/ellar-jwt) diff --git a/ellar_jwt/__init__.py b/ellar_jwt/__init__.py index a58232b..504fae7 100644 --- a/ellar_jwt/__init__.py +++ b/ellar_jwt/__init__.py @@ -1,6 +1,6 @@ -"""Event Emitter module for Ellar python framework""" +"""JWT Module for Ellar""" -__version__ = "0.1.0" +__version__ = "0.1.2" from .module import JWTModule from .schemas import JWTConfiguration from .services import JWTService diff --git a/ellar_jwt/token.py b/ellar_jwt/token.py index cff868e..7acdfad 100644 --- a/ellar_jwt/token.py +++ b/ellar_jwt/token.py @@ -16,7 +16,6 @@ def __init__(self, jwt_config: JWTConfiguration) -> None: self.payload: t.Dict = {} def build(self, payload: t.Dict) -> t.Dict: - # Set "exp" and "iat" claims with default value self.set_exp() self.set_iat() diff --git a/tests/test_jwt_service.py b/tests/test_jwt_service.py index 55390be..459d6da 100644 --- a/tests/test_jwt_service.py +++ b/tests/test_jwt_service.py @@ -242,7 +242,6 @@ def test_decode_with_expiry(self, title, backend): ], ) def test_decode_with_invalid_sig(self, title, backend): - payload = self.payload.copy() payload["exp"] = aware_utcnow() + timedelta(days=1) token_1 = jwt.encode(