Menu

Your .env file should have one line
πŸ–ΌοΈ

Your .env file should have one line

DEV CommunityΒ·Arvin GopiΒ·7 months ago
#yrZGRZ7d
#webdev#ai#programming#localhost#token
Reading 0:00
15s threshold

Every AI app I've shipped recently rewrote the same plumbing. The OAuth dance for Slack. Encrypted storage for an API key. Refresh-token logic that finally fails on the 3rd call after an hour. Wiring up an MCP client to a server behind a bearer token someone pasted into a Notion page.

I'd write it, copy-paste it into the next app, watch it rot. Each new agent built by a different teammate, slightly differently, with slightly different bugs. We were a small team and the integration code became most of the code.

## The pattern under all of it

Strip away the providers and the AI-specific bits, and every app needed the same four things from the platform:

Env vars β€” a database URL, a Stripe key, the boring stuff. Not in a .env file in a Docker image. Not in a CI secret. Somewhere the app can ask for at runtime.

Pre-built integrations β€” Gmail, Calendar, Drive. The user logs in once on the platform; every app gets typed access on their behalf.

Custom OAuth β€” the providers no platform pre-builds.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.