Scaffold the OAuth install flow
scaffold-oauth-callbackGenerate Express (TypeScript) OAuth 2 authorization code flow files for Tiendanube/Nuvemshop apps: install redirect with state, code-exchange callback, and per-store token storage.
Instructions
Generate the Express (TypeScript) OAuth 2 authorization code flow of a Tiendanube / Nuvemshop app: install redirect with state, callback that exchanges the code with a JSON body and stores the token per app and store. Returns the files for the caller to write. For a full app, it points to the official templates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Folder for the generated files, relative to the project root (default "src") | |
| appId | Yes | App ID (client_id) from the Partners Portal | |
| brand | No | Which domain the merchant sees (default tiendanube); the two token URLs are equivalent |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Files to write. The server never writes to disk. | |
| notes | Yes | Next steps and caveats |