lavkach3
15 строк · 451.0 Байт
1from abc import ABC, abstractmethod2from typing import List, Type3
4from fastapi import Request5from fastapi.openapi.models import APIKey, APIKeyIn6from fastapi.security.base import SecurityBase7
8from app.basic.user.services.user_service import UserService9from core.exceptions import CustomException, UnauthorizedException10
11
12
13class Token:14async def token(self, request: Request) -> str | None:15return request.headers.get('Authorization')16
17