mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-14 18:58:10 +08:00
Apply formatting
This commit is contained in:
@ -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)
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
from typing import Any, Awaitable, Union, Type
|
||||
from typing import Any, Awaitable, Type, Union
|
||||
|
||||
try:
|
||||
from typing import Protocol
|
||||
|
Reference in New Issue
Block a user