grammarly-security-basics

Featured

Security fundamentals for Grammarly API credential management. Use when setting up secure authentication and token handling for Grammarly integrations.

AI & Automation 2,944 stars 440 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

# Grammarly Security Basics ## Overview Grammarly processes user-written text content for grammar, tone, and style suggestions. Integrations handle document text that may contain confidential business communications, legal drafts, or personal correspondence. Security concerns include OAuth client credential management, ensuring user text is not persisted or logged unnecessarily, and protecting access tokens that grant read/write access to user documents and suggestion history. ## API Key Management ```typescript function createGrammarlyClient(): { clientId: string; clientSecret: string } { const clientId = process.env.GRAMMARLY_CLIENT_ID; const clientSecret = process.env.GRAMMARLY_CLIENT_SECRET; if (!clientId || !clientSecret) { throw new Error("Missing GRAMMARLY_CLIENT_ID or GRAMMARLY_CLIENT_SECRET"); } // Access tokens from client_credentials grant — never persist to disk console.log("Grammarly client initialized (client ID:", clientId.slice(0, 8), "...)"); return { clientId, clientSecret }; } ``` ## Webhook Signature Verification ```typescript import crypto from "crypto"; import { Request, Response, NextFunction } from "express"; function verifyGrammarlyWebhook(req: Request, res: Response, next: NextFunction): void { const signature = req.headers["x-grammarly-signature"] as string; const secret = process.env.GRAMMARLY_WEBHOOK_SECRET!; const expected = crypto.createHmac("sha256", secret).update(req.body).digest("hex"); if (!signature || !crypto...

Details

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

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category