diff --git a/fastapi_users/authentication/jwt.py b/fastapi_users/authentication/jwt.py index 9aa94f64..2db9ea5e 100644 --- a/fastapi_users/authentication/jwt.py +++ b/fastapi_users/authentication/jwt.py @@ -1,4 +1,4 @@ -from typing import Any, Optional, List +from typing import Any, List, Optional import jwt from fastapi import Response @@ -32,7 +32,7 @@ class JWTAuthentication(BaseAuthentication[str]): lifetime_seconds: int, tokenUrl: str = "auth/jwt/login", name: str = "jwt", - token_audience: List[str] = ["fastapi-users:auth"] + token_audience: List[str] = ["fastapi-users:auth"], ): super().__init__(name, logout=False) self.scheme = OAuth2PasswordBearer(tokenUrl, auto_error=False) diff --git a/fastapi_users/router/users.py b/fastapi_users/router/users.py index 99db2002..5434fec7 100644 --- a/fastapi_users/router/users.py +++ b/fastapi_users/router/users.py @@ -1,6 +1,6 @@ from typing import Any, Callable, Dict, Optional, Type, cast -from fastapi import APIRouter, Depends, HTTPException, Request, status, Response +from fastapi import APIRouter, Depends, HTTPException, Request, Response, status from pydantic import UUID4 from fastapi_users import models diff --git a/fastapi_users/user.py b/fastapi_users/user.py index 945cc747..661db185 100644 --- a/fastapi_users/user.py +++ b/fastapi_users/user.py @@ -1,4 +1,4 @@ -from typing import Any, Awaitable, Union, Type +from typing import Any, Awaitable, Type, Union try: from typing import Protocol