Владислав
Владислав
> ```python > @app.get('/user', dependencies=[Depends(JWTBearer())]) > ``` Based on your reply, handled it for myself by setting up HTTPBearer directly from from fastapi.security, without custom JWTBearer implementation, so it looks...
> 2\. `Authorize.jwt_required()` already does that. Yes, you are right, my fault. Also, for thoose who would like my option: The better variant would be putting the `dependencies=[Depends(HTTPBearer())]` part to...
> 2. Also, we're not dealing with protecting the routes. `Authorize.jwt_required()` already does that. Wait a second, are you sure? I just added dependencies to APIRouter and didn't used jwt_required()...
> @api.doc(params={'Authorization': {'in': 'header', 'description': 'An authorization token'}}) That's what I looked so long. But it still demand a "Bearer" word before the token, can we get rid of it...
> Did you every figure this out? No, If I've got you right. Even did'nt have time for it. I understand the "Bearer" word is necessary, but I want to...