diff --git a/.gitignore b/.gitignore index e3ea440..a28f12c 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,8 @@ htmlcov/ # testing py test.py + +#Pycharm +.idea +.idea/ +.idea/* diff --git a/fastapi_jwt_auth/auth_jwt.py b/fastapi_jwt_auth/auth_jwt.py index 4110bdb..48f9928 100644 --- a/fastapi_jwt_auth/auth_jwt.py +++ b/fastapi_jwt_auth/auth_jwt.py @@ -36,6 +36,18 @@ def __init__(self,req: Request = None, res: Response = None): auth = req.headers.get(self._header_name.lower()) if auth: self._get_jwt_from_headers(auth) + def get_request(self): + """ + Get incoming request + """ + return self._request + + def get_response(self): + """ + Get response from endpoint + """ + return self._response + def _get_jwt_from_headers(self,auth: str) -> "AuthJWT": """ Get token from the headers