How jagrit0711/zuup-auth-worker works
Zuup Auth Gateway is a Cloudflare Worker-based authentication, identity, payment, and database proxy. Its principal workflow is that client applications send requests through the gateway, which protects credentials and mediates access to backend services; documented branches also cover SSO/OAuth, KYC, and admin operations. The excerpts show the admin console UI and public-page renderers, but not the gateway’s route implementation, so service-flow edges rely on README statements rather than inspected handler code.
Main entry points: index.ts Auth Gateway · layout.ts Shared Page Layout · adminDashboard.ts Admin Console UI · home.ts Home Page
Components 16
Gateway Services
- Auth Gateway
src/index.ts - Database Proxy
src/index.ts - Identity and SSO
src/index.ts - KYC Verification
src/index.ts - Payment Gateway
src/index.ts
Admin Console
- Admin Console UI
src/adminDashboard.ts
Public Web
- Home Page
src/routes/home.ts - Documentation
src/routes/docs.ts - API and Policy Pages
src/routes/pages.ts - Shared Page Layout
src/components/layout.ts
Other components
- Client Apps
- Supabase
- Google OAuth
- DigiLocker
- Razorpay
- Cloudflare
Connections 18
- Client Apps → Auth Gateway: send requests
README.md - Auth Gateway → Database Proxy: dispatches to
- Database Proxy → Supabase: proxies queries
README.md - Auth Gateway → Identity and SSO: handles auth
- Identity and SSO → Supabase: syncs sessions
README.md - Identity and SSO → Google OAuth: exchanges codes
README.md - Auth Gateway → KYC Verification: handles KYC
- KYC Verification → DigiLocker: verifies identity
README.md - KYC Verification → Supabase: stores details
README.md - Auth Gateway → Payment Gateway: handles payments
- Payment Gateway → Razorpay: creates and verifies
README.md - Payment Gateway → Supabase: syncs transactions
README.md - Cloudflare → Auth Gateway: provides edge runtime
README.md - Client Apps → Admin Console UI: uses console
- Admin Console UI → Supabase: manages data
README.md - Home Page → Shared Page Layout: renders with
src/routes/home.ts - Documentation → Shared Page Layout: renders with
src/routes/docs.ts - API and Policy Pages → Shared Page Layout: renders with
src/routes/pages.ts