IndominusByte / fastapi-jwt-auth

FastAPI extension that provides JWT Auth support (secure, easy to use, and lightweight)
http://indominusbyte.github.io/fastapi-jwt-auth/
MIT License
630 stars 143 forks source link

Authorize.jwt_required() #12

Closed jet10000 closed 3 years ago

jet10000 commented 3 years ago

image

image

    raise MissingCookieError(status_code=401,message="Missing cookie {}".format(cookie_key))
fastapi_jwt_auth.exceptions.MissingCookieError

Expect Authorize.jwt_required() return json error when missing cookie

IndominusByte commented 3 years ago

Screen Shot 2020-10-30 at 17 28 28

internal server error occurred because you do not define exception_handler()

Screen Shot 2020-10-30 at 17 33 12