Skip to main content

oauth-login

Facilitates OAuth login flows by automating browser interactions and securely storing tokens for verification.

Install this skill

or
0/100

Security score

The oauth-login skill was audited on Mar 1, 2026 and we found 34 security issues across 4 threat categories, including 1 high-severity. Review the findings below before installing.

Categories Tested

Security Issues

medium line 296

Template literal with variable interpolation in command context

SourceSKILL.md
296```bash
medium line 179

Curl to non-GitHub URL

SourceSKILL.md
179curl -sf http://localhost:3847/ -o /dev/null 2>&1 || echo "WARNING: Callback server may not have started"
high line 182

Curl to non-GitHub URL

SourceSKILL.md
182**Verify server is listening** before proceeding by running `curl -sf http://localhost:3847/ -o /dev/null` and checking the exit code. If the server failed to start (port in use, Node.js error), check
medium line 254

Curl to non-GitHub URL

SourceSKILL.md
254curl -s -X POST https://oauth2.googleapis.com/token \
medium line 282

Curl to non-GitHub URL

SourceSKILL.md
282curl -s -H "Authorization: Bearer $ACCESS_TOKEN" https://www.googleapis.com/oauth2/v2/userinfo
medium line 287

Curl to non-GitHub URL

SourceSKILL.md
287curl -s -H "Authorization: Bearer $ACCESS_TOKEN" https://api.github.com/user
medium line 366

Curl to non-GitHub URL

SourceSKILL.md
366curl -s -X POST https://oauth2.googleapis.com/token \
medium line 9

Access to .env file

SourceSKILL.md
9consent page, waits for callback, and stores tokens in the project's `.env` file.
low line 61

Access to .env file

SourceSKILL.md
61- [ ] Step 10: Store tokens in .env
medium line 85

Access to .env file

SourceSKILL.md
85Read `.env` file and check for existing OAuth tokens:
low line 88

Access to .env file

SourceSKILL.md
88grep -E "^OAUTH_(GOOGLE|GITHUB)_" .env 2>/dev/null || true
medium line 121

Access to .env file

SourceSKILL.md
121Add to `.env`:
medium line 128

Access to .env file

SourceSKILL.md
128After writing to `.env`, read back the file to confirm the credentials were stored correctly. If the `.env` file does not exist yet, create it first.
medium line 294

Access to .env file

SourceSKILL.md
294Calculate expiry timestamp and store in `.env`:
medium line 300

Access to .env file

SourceSKILL.md
300Add/update in `.env`:
medium line 308

Access to .env file

SourceSKILL.md
308After writing tokens to `.env`, read back the file to verify the token variables are present and non-empty. Do not proceed to the next step if tokens are missing.
low line 341

Access to .env file

SourceSKILL.md
341Access Token: Stored in .env as OAUTH_{PROVIDER}_ACCESS_TOKEN
medium line 360

Access to .env file

SourceSKILL.md
3601. Read `OAUTH_{PROVIDER}_REFRESH_TOKEN` from `.env`
medium line 373

Access to .env file

SourceSKILL.md
3734. Update `OAUTH_{PROVIDER}_ACCESS_TOKEN` and `OAUTH_{PROVIDER}_TOKEN_EXPIRY` in `.env`
medium line 415

Access to .env file

SourceSKILL.md
415- Client secrets are stored in `.env` which should be in `.gitignore`
low line 33

External URL reference

SourceSKILL.md
33- Go to https://console.cloud.google.com/apis/credentials
low line 35

External URL reference

SourceSKILL.md
35- Add authorized redirect URI: `http://localhost:3847/oauth/callback`
low line 40

External URL reference

SourceSKILL.md
40- Set callback URL: `http://localhost:3847/oauth/callback`
low line 168

External URL reference

SourceSKILL.md
168console.log('OAuth callback server listening on http://localhost:3847');
low line 179

External URL reference

SourceSKILL.md
179curl -sf http://localhost:3847/ -o /dev/null 2>&1 || echo "WARNING: Callback server may not have started"
low line 182

External URL reference

SourceSKILL.md
182**Verify server is listening** before proceeding by running `curl -sf http://localhost:3847/ -o /dev/null` and checking the exit code. If the server failed to start (port in use, Node.js error), check
low line 188

External URL reference

SourceSKILL.md
188https://accounts.google.com/o/oauth2/v2/auth?
low line 190

External URL reference

SourceSKILL.md
190redirect_uri=http://localhost:3847/oauth/callback&
low line 201

External URL reference

SourceSKILL.md
201redirect_uri=http://localhost:3847/oauth/callback&
low line 254

External URL reference

SourceSKILL.md
254curl -s -X POST https://oauth2.googleapis.com/token \
low line 258

External URL reference

SourceSKILL.md
258-d "redirect_uri=http://localhost:3847/oauth/callback" \
low line 282

External URL reference

SourceSKILL.md
282curl -s -H "Authorization: Bearer $ACCESS_TOKEN" https://www.googleapis.com/oauth2/v2/userinfo
low line 287

External URL reference

SourceSKILL.md
287curl -s -H "Authorization: Bearer $ACCESS_TOKEN" https://api.github.com/user
low line 366

External URL reference

SourceSKILL.md
366curl -s -X POST https://oauth2.googleapis.com/token \
Scanned on Mar 1, 2026
View Security Dashboard