| name | canva-security-basics |
| description | 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".
|
| allowed-tools | Read, Write, Grep |
| version | 1.0.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","design","canva"] |
| compatible-with | claude-code |
Canva Security Basics
Overview
Security best practices for Canva Connect API OAuth 2.0 tokens, client credentials, and webhook verification. The Canva API uses OAuth with PKCE — there are no static API keys.
Token Security
Never Expose Client Secrets
CANVA_CLIENT_ID=OCAxxxxxxxxxxxxxxxx
CANVA_CLIENT_SECRET=xxxxxxxxxxxxxxxx
.env
.env.local
.env.*.local
Token Storage
interface SecureTokenStore {
save(userId: string, tokens: {
accessToken: string;
refreshToken: string;
expiresAt: number;
}): Promise<void>;
get(userId: string): Promise<CanvaTokens | null>;
delete(userId: string): Promise<void>;
}