From 5b70684834ff37c36bc6f09b69c6af0975100ea2 Mon Sep 17 00:00:00 2001 From: Brian Schoolcraft Date: Wed, 23 Dec 2015 21:02:17 -0500 Subject: [PATCH] Cleaned up doc strings --- flask_jwt/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/flask_jwt/__init__.py b/flask_jwt/__init__.py index f864b78..4d6ea41 100644 --- a/flask_jwt/__init__.py +++ b/flask_jwt/__init__.py @@ -274,7 +274,7 @@ def identify(payload): def jwt_error_handler(self, callback): """Specifies the error handler function. Example:: - @jwt.error_handler + @jwt.jwt_error_handler def error_handler(e): return "Something bad happened", 400 @@ -337,7 +337,7 @@ def jwt_payload_handler(self, callback): Example:: - @jwt.payload_handler + @jwt.jwt_payload_handler def make_payload(identity): return {'user_id': identity.id} @@ -352,11 +352,11 @@ def jwt_headers_handler(self, callback): Example:: - @jwt.payload_handler - def make_payload(identity): + @jwt.jwt_headers_handler + def make_header(identity): return {'user_id': identity.id} - :param callable callback: the payload handler function + :param callable callback: the header handler function """ self.jwt_headers_callback = callback return callback