Skip to content

Commit

Permalink
Updated the version of the library
Browse files Browse the repository at this point in the history
Passing from version 4.1.2 to 4.1.1 cause is a revision and not only patching
  • Loading branch information
dmtzs committed Dec 19, 2023
1 parent 1888d52 commit 3fe6431
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = Flask-authgen-jwt
version = 4.1.2
version = 4.2.2
author = Diego Martinez
license = MIT
author_email = [email protected]
Expand Down
14 changes: 12 additions & 2 deletions src/flask_authgen_jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,12 @@ def __verify_token(self, token: dict) -> None:
def __authenticate_credentials(self, token: dict[str, str]) -> bool:
"""
Verify the credentials of the user, if the credentials are not correct then the user will be unauthorized
:param token: token to verify the credentials
Args:
- token: token to verify the credentials
Returns:
- bool: True if the credentials are correct, False if not
"""
if self.credentials_success_callback is None:
self.gen_abort_error("get_credentials_success decorator is not set", 500)
Expand All @@ -317,7 +322,12 @@ def __authenticate_credentials(self, token: dict[str, str]) -> bool:
def __set_token_as_attr(self, token: dict) -> None:
"""
Method to set the token as an attribute of the class
:param token: token to set as attribute
Args:
- token: token to set as attribute
Returns:
- None
"""
if self.token_as_attr:
self.token = token
Expand Down

0 comments on commit 3fe6431

Please sign in to comment.