-
-
Notifications
You must be signed in to change notification settings - Fork 245
Open
Description
All error handler callbacks should include the original error message in the parameters.
E.g, the _expired_token_callback
takes e.jwt_header, e.jwt_data
as parameters, thus the original error message is lost when setting the expired_token_loader
.
Either the entire error should be set as parameter, I.e. _expired_token_callback(e: Exception)
or alternatively you could add the error message as a string _expired_token_callback(e.jwt_header, e.jwt_data, str(e))
.
The same applies for all error handlers which do not include the error message.
Metadata
Metadata
Assignees
Labels
No labels