From descope-skills
Integrates Descope authentication (passwordless, OAuth, SSO, MFA) into apps. Detects framework (Next.js, React, backend) and provides targeted guidance.
How this skill is triggered — by the user, by Claude, or both
Slash command
/descope-skills:descope-authThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Integrate secure, passwordless authentication using Descope Flows and SDKs.
Integrate secure, passwordless authentication using Descope Flows and SDKs.
Detect the user's framework and use the appropriate reference:
| If project has... | Use reference |
|---|---|
next in package.json | references/nextjs.md |
react (no Next.js) | references/react.md |
| Python/Node.js backend only | references/backend.md |
NEXT_PUBLIC_DESCOPE_PROJECT_ID=<your-id><Descope> component renders the login form. Check the browser console — a missing or invalid Project ID produces a clear Could not load flows error.// src/app/login/page.tsx
import { Descope } from '@descope/nextjs-sdk';
export default function LoginPage() {
return (
<Descope
flowId="sign-up-or-in"
onSuccess={(e) => console.log('Authenticated:', e.detail.user)}
onError={(e) => console.error('Auth failed:', e.detail)}
/>
);
}
For React SPA or backend-only setups, see the framework-specific references below.
| Flow ID | Purpose |
|---|---|
sign-up-or-in | Combined signup/login (RECOMMENDED) |
sign-up | Registration only |
sign-in | Login only |
step-up | MFA step-up authentication |
update-user | Profile updates, add auth methods |
| Method | When to use |
|---|---|
| OTP (Email/SMS) | Quick verification codes |
| Magic Link | Passwordless email links |
| Passkeys | Biometric/WebAuthn (most secure) |
| OAuth | Social login (Google, GitHub, etc.) |
| SSO | Enterprise SAML/OIDC |
| Passwords | Traditional auth (not recommended) |
validateSession()references/nextjs.md - Next.js App Router integrationreferences/react.md - React SPA integrationreferences/backend.md - Backend session validationProvides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.
npx claudepluginhub descope/skills --plugin descope-skills