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,926 stars 433 forks Updated yesterday 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
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category