@econneq/utility-functions
v1.0.5
Published

Readme
@econneq/gql-auth
A high-performance, multi-tenant GraphQL abstraction layer designed for Next.js (App Router) and Apollo Client.
This package standardizes how frontend projects interact with a Django GraphQL backend, handling tenant detection, SSR cookie forwarding, and multipart file uploads.
✨ Features
- 🌍 Automatic Tenant Injection: Detects subdomains and injects
X-Tenant-ID,X-Process-ID, andX-Widget-IDheaders. - 🔐 SSR Ready: Built-in support for
next/headersto forward authentication cookies during Server-Side Rendering. - 📁 Smart File Uploads: Simplifies
multipart/form-datalogic for GraphQL mutations. - 🚀 Lightweight: Optimized to use peer dependencies, keeping your bundle size minimal.
📦 Installation
npm install @econneq/gql-auth