JWT dont accept Authorization with Bearer JWT dont accept Authorization with Bearer flask flask

JWT dont accept Authorization with Bearer


Had the same issue, the solution is to use the headers as such

key: Authorization

value: jwt {token}

as simple as that.


I'm not sure about changing the swagger stuff, but if you are using flask-jwt-extended you can change the rest of your flask application to also use JWT instead of Bearer to keep everything consistent. See the JWT_HEADER_TYPE option here: http://flask-jwt-extended.readthedocs.io/en/latest/options.html#header-options