package auth import ( "context" "github.com/google/uuid" "github.com/jackc/pgx/v5" "gitea.privcloud.tech/mtusi2026/internal/dto" ) type userRepo interface { GetCredentialsByUsername(ctx context.Context, username string) (*dto.UserCredentials, error) } type refreshTokensRepo interface { GetByID(ctx context.Context, id uuid.UUID) (*dto.StoredRefreshToken, error) GetByIDForUpdateTx(ctx context.Context, tx pgx.Tx, id uuid.UUID) (*dto.StoredRefreshToken, error) CreateTx(ctx context.Context, tx pgx.Tx, req dto.StoredRefreshToken) error RevokeTx(ctx context.Context, tx pgx.Tx, req dto.RevokeRefreshToken) error }