vimalloc / flask-jwt-extended

An open source Flask extension that provides JWT support (with batteries included)!
http://flask-jwt-extended.readthedocs.io/en/stable/
MIT License
1.56k stars 239 forks source link

Typing issue #509

Closed eMaerthin closed 1 year ago

eMaerthin commented 1 year ago

Hi, I can see that there is a little inconsistency on typing of the expires_delta argument in create_access_token. In utils it is Optional[datetime.timedelta] while as per jwt_manager and as mentioned in docstrings its type should be rather Optional[ExpiresDelta].

I can prepare a quick fix if you like.

vimalloc commented 1 year ago

That would be great, thanks!