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 May 12, 2026 and we found 33 security issues across 4 threat categories, including 1 high-severity. Review the findings below before installing.

Categories Tested

Security Issues

medium line 265

Template literal with variable interpolation in command context

SourceSKILL.md
265```bash
medium line 148

Curl to non-GitHub URL

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

Curl to non-GitHub URL

SourceSKILL.md
151**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 223

Curl to non-GitHub URL

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

Curl to non-GitHub URL

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

Curl to non-GitHub URL

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

Curl to non-GitHub URL

SourceSKILL.md
335curl -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 263

Access to .env file

SourceSKILL.md
263Calculate expiry timestamp and store in `.env`:
medium line 269

Access to .env file

SourceSKILL.md
269Add/update in `.env`:
medium line 277

Access to .env file

SourceSKILL.md
277After 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 310

Access to .env file

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

Access to .env file

SourceSKILL.md
3291. Read `OAUTH_{PROVIDER}_REFRESH_TOKEN` from `.env`
medium line 342

Access to .env file

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

Access to .env file

SourceSKILL.md
384- 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 148

External URL reference

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

External URL reference

SourceSKILL.md
151**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 157

External URL reference

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

External URL reference

SourceSKILL.md
159redirect_uri=http://localhost:3847/oauth/callback&
low line 170

External URL reference

SourceSKILL.md
170redirect_uri=http://localhost:3847/oauth/callback&
low line 223

External URL reference

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

External URL reference

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

External URL reference

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

External URL reference

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

External URL reference

SourceSKILL.md
335curl -s -X POST https://oauth2.googleapis.com/token \
Scanned on May 12, 2026
View Security Dashboard
Installation guide →