check roles user
This commit is contained in:
@@ -23,7 +23,6 @@ class OAuth2PasswordBearerWithCookie(OAuth2):
|
||||
|
||||
async def __call__(self, request: Request) -> Optional[str]:
|
||||
authorization: str = request.cookies.get("access_token") #changed to accept access token from httpOnly Cookie
|
||||
print("access_token is",authorization)
|
||||
|
||||
scheme, param = get_authorization_scheme_param(authorization)
|
||||
if not authorization or scheme.lower() != "bearer":
|
||||
|
Reference in New Issue
Block a user