| name | miro-install-auth |
| description | Install and configure Miro REST API v2 authentication with OAuth 2.0.
Use when setting up a new Miro app, configuring OAuth tokens,
or initializing the @mirohq/miro-api Node.js client.
Trigger with phrases like "install miro", "setup miro",
"miro auth", "miro OAuth", "configure miro API".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(npx:*), Grep |
| version | 1.6.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","miro","oauth","authentication"] |
| compatibility | Designed for Claude Code |
Miro Install & Auth
Overview
Set up the official @mirohq/miro-api Node.js client and configure OAuth 2.0 authentication against the Miro REST API v2 (https://api.miro.com/v2/).
Prerequisites
- Node.js 18+
- A Miro account (Free, Business, or Enterprise)
- A Miro app created at https://developers.miro.com (Your apps > Create new app)
- Client ID, Client Secret, and OAuth redirect URI from the app settings
Instructions
Step 1: Install the Official SDK
npm install @mirohq/miro-api
npm install express dotenv
Step 2: Configure OAuth 2.0 Credentials
MIRO_CLIENT_ID=your_client_id
MIRO_CLIENT_SECRET=your_client_secret
MIRO_REDIRECT_URI=http://localhost:3000/auth/miro/callback
MIRO_ACCESS_TOKEN=
MIRO_REFRESH_TOKEN=
Miro uses standard OAuth 2.0 authorization code flow. Tokens expire in 3599 seconds (approximately 1 hour). Always store and use the refresh token.
Step 3: OAuth 2.0 Authorization Flow
import { Miro } from '@mirohq/miro-api';
import express from 'express';
const miro = new Miro({
clientId: process.env.MIRO_CLIENT_ID!,
clientSecret: process.env.MIRO_CLIENT_SECRET!,
redirectUrl: process.env.MIRO_REDIRECT_URI!,
: {
() {
(userId);
},
() {
(userId, token);
},
},
});
app = ();
app.(, {
authUrl = miro.();
res.(authUrl);
});
app.(, (req, res) => {
{ code } = req.;
(!code || code !== ) {
res.().();
}
{
miro.(, code);
res.();
} (err) {
.(, err);
res.().();
}
});
app.(, .());