Skip to content

Building 70 Projects ranging from beginner to advanced so anyone can — learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company 👇

389 B
Raw Blame
"""
ⒸAngelaMos | 2025
dependencies.py
"""

from typing import Annotated

from fastapi import Depends

from core.dependencies import DBSession
from .service import AuthService


def get_auth_service(db: DBSession) -> AuthService:
    """
    Dependency to inject AuthService instance
    """
    return AuthService(db)


AuthServiceDep = Annotated[AuthService, Depends(get_auth_service)]