Skip to content

Commit

Permalink
Added unregister_algorithm to the public API
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-adams committed Mar 18, 2015
1 parent 6e61560 commit d4a0a22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jwt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
__copyright__ = 'Copyright 2015 José Padilla'


from .api import encode, decode, register_algorithm, PyJWT
from .api import (
encode, decode, register_algorithm, unregister_algorithm, PyJWT
)
from .exceptions import (
InvalidTokenError, DecodeError, ExpiredSignatureError,
InvalidAudienceError, InvalidIssuerError,
Expand Down
1 change: 1 addition & 0 deletions jwt/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,4 @@ def _verify_signature(self, payload, signing_input, header, signature,
encode = _jwt_global_obj.encode
decode = _jwt_global_obj.decode
register_algorithm = _jwt_global_obj.register_algorithm
unregister_algorithm = _jwt_global_obj.unregister_algorithm

0 comments on commit d4a0a22

Please sign in to comment.