Flask-API-Token
Flask-API-Token copied to clipboard
This project shows how api developers can add tokens to secure web service/api from extreme abuse by users.
Hi, when I POST a new author on the authors API, passing it the token received by login, I receive a message "token is invalid". The call (taken from POSTMAN)...
I found a bug, public_id I feel no need to be an argument. Just def get_authors(current_user): https://github.com/Rev0kz/Flask-API-Token/blob/a632c1638f97f9a268e94823713094d8a875489c/app.py#L111 Thank you
Hey there, I found the type in line 48. https://github.com/Rev0kz/Flask-API-Token/blob/a632c1638f97f9a268e94823713094d8a875489c/app.py#L48 it should be: data = jwt.decode(token, app.config['SECRET_KEY']) Thank you