pallets-eco / flask-jwt

JWT (JSON Web Tokens) for Flask applications
MIT License
564 stars 177 forks source link

Provide different secret to decode function. #134

Closed alihen closed 5 years ago

alihen commented 5 years ago

I'd like to pass in a different secret for some tokens I decode manually in the [_default_jwt_decode_handler](https://github.com/mattupstate/flask-jwt/blob/master/flask_jwt/__init__.py#L74). I'm aware that I'd likely need to disable JWT_VERIFY and call the decode/verify each token myself on a request.

Is there any way to pass a secret as a parameter to any of the current decode methods?