Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

app-auth

БесплатноЗапускает вложенные скриптыНе проверен

This skill should be used when the user asks to build, design, add, refactor or fix "login", "auth", "authentication", "social login", "sign in", "signup"…

fcakyonот fcakyon★ 1 223 звезды на GitHub

Об этом скилле

App authentication

Use full-page, same-tab social login by default and offer the last successfully used profile, saved after every verified login unless the product needs an opt-in checkbox. Google and the browser decide whether account selection or reauthentication is required. Do not promise silent login or call a flow fastest without measurements.

  1. Inspect login, signup, email verification, recovery, session, logout, account linking and authorization. Identify the selected action, locales, design system and registered Google callback.
  2. Read integration. For React 19.2+, adapt GoogleSignIn.tsx and its styles. Use the optional AuthPanel with panel styles for a minimal auth shell. Other frameworks should implement the same contract using their own lifecycle primitives.
  3. Use login.ts for framework-independent navigation and last-login profile storage. React hosts can wrap their existing forms in RememberedLogin. Run npm run dev in the plugin directory for the Vite demo. Its provider and email flows are simulations.
  4. For PocketBase apps, map enabled auth methods with pocketbase.ts and read the optional PocketBase section in the integration contract. Native token-link recovery, OTP, MFA and app session ownership remain explicit host responsibilities.
  5. For email/password flows, adapt EmailAuth.tsx and email styles. Read the email adapter section in the integration contract. Use email-design for messages sent by those flows.
  6. Use GoogleSignIn with label, redirectEndpoint and returnTo for full-page login without GIS. The old credential adapter remains available for existing popup integrations. A saved email may be a provider hint only. The provider still verifies identity. “Sign in with another profile” opens all configured methods and uses prompt=select_account without a hint.
  7. Resolve return navigation in the auth owner using pendingReturnTo and oauthErrorReason in login.ts (plus optional onSelect on SocialSignIn.tsx) so unsafe external origins, //, and \ are rejected and cancelled or expired OAuth redirects surface localized feedback. Both paths must use the same account/session policy, then resume the action once. Only the backend verifies identity and authorizes access.
  8. Gate Session/profile and SSR session reads on the session cookie before hitting backend/database APIs, use PKCE S256 with 600–900s HttpOnly SameSite=Lax state cookies (Cache-Control: no-store), clear the state cookie once on every outcome (success, mismatch, expiry, cancellation), recover callback failures with 3xx redirects to the localized UI instead of raw 401 JSON, allow all supported locale prefixes in returnTo, and verify the live endpoints without credentials using node scripts/check-oauth.mjs --start <url> --callback <url> --origin <origin> --locales en,tr,ar.
  9. Run the applicable journeys through the project's existing QA harness. Keep fixture results, real Google evidence and deployed behavior distinct.
  10. Record the app commit, runtime versions and actual evidence in its existing tracked guidance. Change the shared recipe only when new evidence changes a shared rule.

The app owns script loading, public client configuration, sessions, error reporting and navigation. The component owns rendering, pending/error UI and cancelling its credential operation when the auth surface closes.

For architecture standardization, read backend standard. It is a proposed target, not an implemented Go dependency or completed migration.

For web/native/TV clients or another social provider, read platforms and providers. Use one identity store and revocation model per product across its clients. Keep browser cookies and native secure-storage transport distinct.

Curation

Read provenance before claiming production coverage. Distinguish a shipped reference, a tested extraction and a pending app integration. Add future components as focused skills with code, integration contracts and behavior tests when an actual app supplies the evidence. Do not add empty catalogs or treat a component PR as permission to deploy another app.

Полный SKILL.md на GitHub

Установить app-auth в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/AuthPanel.tsxassets/EmailAuth.tsxassets/GoogleSignIn.tsxassets/ProviderLogo.tsxassets/RememberedLogin.tsxassets/SocialSignIn.tsxassets/auth-panel.cssassets/auth.tsassets/email-auth.cssassets/fonts/InterVariable.woff2assets/fonts/OFL.txtassets/google-sign-in.cssassets/login.tsassets/logos.d.tsassets/logos/apple.svgassets/logos/github.svgassets/logos/google.svgassets/logos/huggingface.svgassets/pocketbase.tsassets/social-sign-in.cssreferences/backend-standard.mdreferences/integration.mdreferences/journeys.mdreferences/platforms.mdreferences/provenance.mdscripts/check-oauth.mjs

FAQ

Что делает скилл app-auth?

This skill should be used when the user asks to build, design, add, refactor or fix "login", "auth", "authentication", "social login", "sign in", "signup", "password recovery", "remember last login", "switch accounts", or a "reusable login component", including Google, GitHub, Apple, Hugging Face and PocketBase auth. Use the shared login design, bundled SVG logos, same-tab social sign-in, remembered profiles and email forms, with framework-neutral TypeScript contracts, React components and a Vite demo. Native and TV flows remain integration contracts.

Как установить скилл app-auth?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл app-auth запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить app-auth с