Toolverse
All skills

auth-patterns

by davepoon

This skill should be used when the user asks about \

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
davepoon
Category
Security
Views
19

About this skill

This skill should be used when the user asks about \

How to use

  1. Zainstaluj NextAuth.js v5 poleceniem npm install next-auth@beta w swoim projekcie Next.js.

  2. Utwórz plik auth.ts w głównym katalogu projektu i skonfiguruj NextAuth z wybranymi dostawcami — możesz użyć GitHub OAuth, poświadczeń (email/hasło) lub obu jednocześnie. Dodaj funkcję authorize do weryfikacji użytkownika i ustaw callback authorized do sprawdzenia sesji.

  3. Utwórz plik route.ts w ścieżce app/api/auth/[...nextauth]/ i wyeksportuj handlery GET i POST z konfiguracji auth.ts — to obsługuje wszystkie żądania autentykacji.

  4. Dodaj middleware.ts w głównym katalogu, aby chronić wybrane trasy. Middleware automatycznie sprawdzi sesję i przekieruje niezalogowanych użytkowników na stronę logowania.

  5. W komponentach używaj funkcji signIn i signOut z konfiguracji do obsługi logowania i wylogowania. Dostęp do danych sesji uzyskaj poprzez funkcję auth() w komponentach serwerowych.

  6. Jeśli potrzebujesz alternatywy — skill zawiera informacje o Clerk, Lucia, Supabase Auth i niestandardowych JWT jako opcjach dla różnych przypadków użycia.

Related skills

senior-security

by davila7

Comprehensive security engineering skill for application security, penetration testing, security architecture, and compliance auditing. Includes security assessment tools, threat modeling, crypto implementation, and security automation. Use when designing security architecture,

Security
2482

zendesk

by vm0-ai

Zendesk Support REST API for managing tickets, users, organizations, and support operations. Use this skill to create tickets, manage users, search, and automate customer support workflows.

Security
11100

llama-cpp

by zechenzhangAGI

Runs LLM inference on CPU, Apple Silicon, and consumer GPUs without NVIDIA hardware. Use for edge deployment, M1/M2/M3 Macs, AMD/Intel GPUs, or when CUDA is unavailable. Supports GGUF quantization (1.5-8 bit) for reduced memory and 4-10× speedup vs PyTorch on CPU.

Security
11252

brand-voice

by anthropics

Apply and enforce brand voice, style guide, and messaging pillars across content. Use when reviewing content for brand consistency, documenting a brand voice, adapting tone for different audiences, or checking terminology and style guide compliance.

Security
48158

feishu-docs

by openclaw

飞书文档(Docx)API技能。用于创建、读取、更新和删除飞书文档。支持Markdown/HTML内容转换、文档权限管理。

Security
1574

backend-security-coder

by sickn33

Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.

Security
1133