mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-11-30 13:20:40 +03:00
fix imports
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
import time
|
||||
import jwt
|
||||
|
||||
from app import config
|
||||
from app.config import settings as global_settings
|
||||
from app.models.user import User
|
||||
|
||||
from fastapi import Request, HTTPException
|
||||
from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials
|
||||
|
||||
global_settings = config.get_settings()
|
||||
|
||||
|
||||
async def verify_jwt(request: Request, token: str) -> bool:
|
||||
_payload = await request.app.state.redis.get(token)
|
||||
|
||||
Reference in New Issue
Block a user