How soladzpro-ai/apiuytin works
APIUYTIN is a Cloudflare Pages identity broker: users authenticate or add accounts, bind them to a device, choose an account and approve profile sharing; the integrating app receives a one-time code to exchange for an APIUYTIN token and retrieve user information. The dashboard also manages projects and credentials. The graph includes documented API and account capabilities, but unsampled route implementations are represented at their supported directory or route path; edges are limited to visible calls and documented relationships.
Main entry points: auth.js Identity core · oauth.js OAuth transactions · consent.js Account chooser · [[path]].js Auth API routes
Components 24
Dashboard and account UI
- Dashboard UI
public/app.js - Login forms
public/auth.js - Account settings
public/account-me.js - Project overview
public/overview.js - API documentation UI
public/docs.js
Identity and sessions
- Google bootstrap
functions/auth/google.js - Google callback
functions/auth/google/callback.js - GitHub sign-in
functions/auth/github.js - GitHub callback
functions/api/auth/github/callback.js - Identity core
functions/_lib/auth.js
Project OAuth
- OAuth start
functions/oauth/google.js - Account chooser
functions/oauth/consent.js - Local account login
functions/oauth/consent/local-login.js - Consent rendering
functions/_lib/consent.js - OAuth transactions
functions/_lib/oauth.js - OAuth callback
functions/oauth/google/callback.js
API and persistence
- Auth API routes
functions/api/auth/[[path]].js - Project routes
functions/api/auth/projects/[projectId].js - Overview route
functions/api/auth/overview/[projectId].js - Sanity datastore
Other components
- Account user
- Integrating app
- Google OAuth
- GitHub OAuth
Connections 29
- Account user → Dashboard UI: uses
README.md - Dashboard UI → Login forms: initializes
public/app.js - Account user → Google bootstrap: starts sign-in
README.md - Google bootstrap → Google callback: redirects
- Google callback → Google OAuth: exchanges code
functions/auth/google/callback.js - Google callback → Identity core: creates session
functions/auth/google/callback.js - Account user → GitHub sign-in: starts sign-in
functions/auth/github.js - GitHub callback → GitHub OAuth: exchanges code
functions/api/auth/github/callback.js - GitHub callback → Identity core: links account
functions/api/auth/github/callback.js - Integrating app → OAuth start: starts authorization
README.md - OAuth start → OAuth transactions: creates transaction
functions/oauth/google.js - Account chooser → OAuth transactions: loads transaction
functions/oauth/consent.js - Account chooser → Identity core: loads accounts
functions/oauth/consent.js - Account chooser → Consent rendering: renders chooser
functions/oauth/consent.js - Account user → Account chooser: selects account
functions/oauth/consent.js - Local account login → OAuth transactions: checks transaction
functions/oauth/consent/local-login.js - Local account login → Identity core: links account
functions/oauth/consent/local-login.js - OAuth transactions → Identity core: uses helpers
functions/_lib/oauth.js - OAuth callback → OAuth transactions: issues code
functions/oauth/google/callback.js - Account chooser → OAuth callback: redirects with code
- Integrating app → Auth API routes: exchanges code
README.md - Auth API routes → Sanity datastore: reads and writes
functions/api/auth/[[path]].js - Identity core → Sanity datastore: reads and writes
functions/_lib/auth.js - OAuth transactions → Sanity datastore: stores transactions
functions/_lib/oauth.js - Dashboard UI → Auth API routes: manages projects
- Account settings → Auth API routes: manages account
- Project overview → Overview route: loads overview
- Project routes → Identity core: uses helpers
functions/api/auth/projects/[projectId].js - Overview route → Identity core: uses helpers
functions/api/auth/overview/[projectId].js