hackhaton-space-stackHackhaton Space Stack
AcademyBuilder
Get Started
All terms
The Basics
  • Stack
  • Frontend & Backend
  • CLI
  • Monorepo
  • Server
  • Localhost
How AI Works
  • Context Window
  • Hallucination
  • Token
  • Prompt Caching
  • Session
  • Compaction
  • Embedding
  • Vector Database
  • RAG
  • Fine-tuning
  • Temperature
  • Inference
  • Reasoning
  • Multimodal
Building With AI
  • Agent
  • MCP
  • System Prompt
  • Skill
  • CLAUDE.md
  • Slash Command
  • Harness
  • Computer Use
  • Agents SDK
  • Voice Agents
  • OAuth
  • Vibe Coding
  • Permission Scope
  • Tool Calling
  • Prompt Injection
  • Eval
  • Guardrails
  • Sandbox
  • Progressive Disclosure
Code & Collaboration
  • Git
  • Commit
  • Branch
  • GitHub
  • Pull Request
  • Open Source
  • Markdown
  • Dependency
  • Merge
  • Fork
APIs & Connections
  • API
  • Auth
  • Database
  • ORM
  • SDK
  • Webhook
  • Endpoint
  • REST
  • HTTP Methods
  • Env File
  • Schema
  • JSON
  • YAML
  • Secret
  • Rate Limit
  • CORS
  • Cookie
  • Encryption
Shipping & Running
  • Deploy
  • Headless
  • Cron
  • DNS
  • CDN
  • Object Storage
  • Serverless
  • Edge
  • Worker
  • Runtime
  • Process
  • Daemon
  • Queue
  • Job
  • State
  • Cache
  • SSH
  • Build
  • Staging
  • Rollback
  • Docker
  • Feature Flag
  • Test
  • CI/CD
  • The Cloud
Debugging & Errors
  • Trace
  • Type Error
  • Stack Trace
  • Log
  • Bug
  • Patch
  • Latency
How Developers Think
  • DRY
  • YAGNI
  • KISS
  • Refactoring
  • Technical Debt
  • Async
← All terms

Type-safe, modern TypeScript scaffolding for full-stack web development

ThreadsGitHub

Info

  • Academy
  • Docs

Legal

  • Terms of Service
  • Privacy Policy

© 2026 Dzulhelmy Nazri

Building With AI

$defineoauth--plain-english

OAuth

TLDRA valet key for an account — not the master key.

OAuth is a visitor lanyard — not a new password, and not your employee badge.

The front desk prints a sticker: who you are, which rooms, until when. The elevators read the sticker. The server closet ignores it. You can shred the sticker at 5pm. The badge in your pocket never left your pocket.

You've clicked Sign in with Google; that's this handshake.

What the sticker actually says

A token is the sticker. It proves identity, lists permission scope, and often expires. The app never sees your password. The identity provider (Google, GitHub, Slack) asks you, then hands the app a pass cut to the rooms you approved.

That is a different deal than an API key. A key is usually all-or-nothing: whoever holds it can do everything the account can do. Fine-ish when only you hold it. Not fine when you hand it to an agent that runs while you sleep and can be confidently wrong.

So you give the agent its own lanyard. Read the calendar, don't delete it. Post in one channel, don't touch billing. Draft the mail, don't send. Revoke one pass and the rest of the house stays locked. Your password did not change.

Auth in the builder (Better Auth, Clerk) is how your app becomes the front desk. OAuth is how your app — or your agent — visits someone else's building without collecting their house keys. Put the client secret in env, not in the repo.

If a tool asks for more rooms than the demo needs, refuse. You can widen later. You cannot un-print a wide sticker.

What this unlocks

Once the lanyard exists, "the agent needs GitHub" stops meaning "paste my password." It means a labeled, expiring, revocable pass.

A master key is a liability. A sticker is a contract.

Related

  • Auth
  • Permission Scope
  • Secret
  • Agent
PrevVoice Agents

Building With AI

NextVibe Coding