from __future__ import annotations

from fastapi import Depends
from fastapi.security import OAuth2PasswordBearer
from sqlmodel import Session, select

from src.database import engine
from src.models import User
from src.services.auth import decode_jwt

from .http_exceptions import credentials_exception


def get_db():
    with 