canva-install-auth

Featured

Set up Canva Connect API OAuth 2.0 PKCE authentication and project scaffolding. Use when creating a new Canva integration, setting up OAuth credentials, or initializing a Canva Connect API project. Trigger with phrases like "install canva", "setup canva", "canva auth", "configure canva API", "canva OAuth".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Canva Connect API — Install & Auth ## Overview Set up a Canva Connect API integration with OAuth 2.0 Authorization Code flow with PKCE (SHA-256). The Canva Connect API is a REST API at `https://api.canva.com/rest/v1/*` — there is no SDK package. All calls use `fetch` or `axios` with Bearer tokens. ## Prerequisites - Node.js 18+ (for native `crypto.subtle` and `fetch`) - A Canva account at [canva.com](https://www.canva.com) - An integration registered at [canva.dev](https://www.canva.dev/docs/connect/creating-integrations/) ## Instructions ### Step 1: Register Your Integration 1. Go to **Settings > Integrations** at [canva.com/developers](https://www.canva.com/developers) 2. Create a new integration — note your **Client ID** and **Client Secret** 3. Add redirect URI(s): e.g. `http://localhost:3000/auth/canva/callback` 4. Enable required scopes under **Permissions** ### Step 2: Store Credentials ```bash # .env (NEVER commit — add to .gitignore) CANVA_CLIENT_ID=OCAxxxxxxxxxxxxxxxx CANVA_CLIENT_SECRET=xxxxxxxxxxxxxxxx CANVA_REDIRECT_URI=http://localhost:3000/auth/canva/callback ``` ```bash echo '.env' >> .gitignore echo '.env.local' >> .gitignore ``` ### Step 3: Implement OAuth 2.0 PKCE Flow ```typescript // src/canva/auth.ts import crypto from 'crypto'; // 1. Generate PKCE code verifier and challenge export function generatePKCE(): { verifier: string; challenge: string } { const verifier = crypto.randomBytes(64).toString('base64url'); // 43-128 chars const cha...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

canva-security-basics

Apply Canva Connect API security best practices for OAuth tokens and access control. Use when securing OAuth credentials, implementing least-privilege scopes, or auditing Canva integration security. Trigger with phrases like "canva security", "canva secrets", "secure canva", "canva token security", "canva OAuth security".

2,266 Updated today
jeremylongshore
AI & Automation Featured

canva-deploy-integration

Deploy Canva Connect API integrations to Vercel, Fly.io, and Cloud Run. Use when deploying Canva-powered applications to production, configuring platform-specific secrets, or setting up deployment pipelines. Trigger with phrases like "deploy canva", "canva Vercel", "canva production deploy", "canva Cloud Run", "canva Fly.io".

2,266 Updated today
jeremylongshore
AI & Automation Featured

canva-local-dev-loop

Configure Canva Connect API local development with hot reload and mock server. Use when setting up a development environment, testing OAuth flows locally, or establishing a fast iteration cycle for Canva integrations. Trigger with phrases like "canva dev setup", "canva local development", "canva dev environment", "develop with canva", "canva mock".

2,266 Updated today
jeremylongshore
AI & Automation Featured

canva-hello-world

Create a minimal working Canva Connect API example. Use when starting a new Canva integration, testing your setup, or learning basic Canva REST API patterns. Trigger with phrases like "canva hello world", "canva example", "canva quick start", "simple canva code".

2,266 Updated today
jeremylongshore
AI & Automation Featured

canva-reference-architecture

Implement Canva Connect API reference architecture with best-practice project layout. Use when designing new Canva integrations, reviewing project structure, or establishing architecture standards for Canva applications. Trigger with phrases like "canva architecture", "canva project structure", "how to organize canva", "canva layout", "canva reference".

2,266 Updated today
jeremylongshore