Install
$ agentstack add skill-andrewsrigom-agent-skills-better-auth-social-providers-and-oauth ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Better Auth Social Providers And OAuth
Use this skill when Better Auth is handling provider login instead of local credentials.
Scope
- social provider configuration
- provider credentials and redirect wiring
signIn.social- linking provider accounts
- retrieving or refreshing provider access tokens
- generic OAuth for unsupported providers
- scope and profile mapping choices
Default path
- Configure the provider in
socialProviderswith the right client credentials. - Keep provider credentials server-only.
- Use
signIn.socialon the client for browser login flows unless a server-side initiation is required. - Decide whether users can link additional providers after initial account creation.
- If the app needs provider APIs later, plan around
getAccessTokenand refresh behavior. - For unsupported providers, move to the Generic OAuth plugin instead of hacking custom callback flows outside Better Auth.
When to deviate
- Use a server-side initiation path only when the app boundary or provider flow requires it.
- Request additional scopes only when a concrete downstream provider API needs them.
- Move to the Generic OAuth plugin when the provider is unsupported rather than hacking callback plumbing yourself.
- Route to the plugin skill when OAuth work becomes mainly about proxying, org ownership, or enterprise identity patterns.
Guardrails
- Do not hand-roll provider callback routes that Better Auth already manages.
- Do not expose provider secrets to the client.
- Treat scopes as least-privilege, not “request everything.”
- Do not assume an access token will stay valid forever; Better Auth can refresh it when available.
- Keep account-linking behavior explicit to avoid accidental identity merges.
Avoid
- hand-rolling provider callback routes outside Better Auth
- requesting broad provider scopes without a defined product need
- assuming long-lived provider tokens without planning refresh behavior
- making account linking implicit and risking accidental identity merges
Verification checklist
- provider credentials stay server-only
- login flow uses
signIn.socialor a justified server-side initiation path - requested scopes are least-privilege
- token refresh or downstream provider API behavior is considered when needed
- account-linking rules are explicit
Common Routing Cues
- socialProviders, Google auth, GitHub auth,
signIn.social, link social account, provider scopes, generic OAuth, access token refresh, provider profile mapping
Output Shape
When answering with this skill, prefer:
- provider config shape
- client auth call
- token or account-linking decision
- when to use Generic OAuth
Official References
- https://better-auth.com/docs/concepts/oauth
- https://better-auth.com/docs/authentication/other-social-providers
- https://better-auth.com/docs/plugins/oauth-proxy
Current snapshot
- Checked against official docs on 2026-04-03
- Current npm line verified live on 2026-04-03:
better-auth@1.5.6 - OAuth docs in scope: OAuth concepts, other social providers, and OAuth proxy plugin
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: andrewsrigom
- Source: andrewsrigom/agent-skills
- License: MIT
- Homepage: https://andrewsrigom.github.io/agent-skills/
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.