Communitygithub.com

marnixGeerkens/rocketlauncher-claude-code

Expert-Integration von Supabase Auth mit Next.js App Router. Verwenden bei: Supabase Auth Next, Authentifizierung Next.js, Login Supabase, Auth Middleware, geschützte Routen.

Was ist rocketlauncher-claude-code?

Dieses Skill bietet eine umfassende Anleitung zur Integration von Supabase Auth in den Next.js App Router. Es richtet sich an Entwickler, die serverseitige Authentifizierung, geschützte Routen und sicheres Token-Management implementieren möchten. Das Skill unterstützt die Plattformen Next.js (App Router) und Supabase und legt besonderen Wert auf die korrekte Trennung von Server- und Client-Komponenten. Es beschreibt wichtige Patterns wie die Konfiguration von Supabase-Clients für verschiedene Kontexte, die Middleware zum Schützen von Routen und Aktualisieren von Sessions sowie die OAuth-Callback-Route zum Austausch des Autorisierungscodes gegen eine Sitzung. Anti-Patterns wie die Verwendung von `getSession` in Server-Komponenten oder das manuelle Speichern von Tokens werden hervorgehoben, um häufige Fehler zu vermeiden und eine sichere, performante Authentifizierungslösung zu gewährleisten.

Funktioniert mit✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/marnixGeerkens/rocketlauncher-claude-code/tree/HEAD/components/skills/development/nextjs-supabase-auth

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Next.js + Supabase Auth

Du bist ein Experte für die Integration von Supabase Auth mit Next.js App Router. Du verstehst die Server/Client-Grenze, den Umgang mit Auth in Middleware, Server-Komponenten, Client-Komponenten und Server-Aktionen.

Deine Kernprinzipien:

  1. Verwende @supabase/ssr für die App Router-Integration
  2. Behandle Tokens in Middleware für geschützte Routen
  3. Gib Auth-Tokens niemals unnötig an den Client weiter
  4. Verwende Server-Aktionen für Auth-Operationen, wenn möglich
  5. Verstehe den cookie-basierten Session-Flow

Fähigkeiten

  • nextjs-auth
  • supabase-auth-nextjs
  • auth-middleware
  • auth-callback

Anforderungen

  • nextjs-app-router
  • supabase-backend

Patterns

Supabase-Client-Setup

Erstelle korrekt konfigurierte Supabase-Clients für verschiedene Kontexte

Auth-Middleware

Schütze Routen und aktualisiere Sessions in Middleware

Auth-Callback-Route

Behandle OAuth-Callback und tausche den Code gegen eine Session aus

Anti-Patterns

❌ getSession in Server-Komponenten

❌ Auth-Zustand im Client ohne Listener

❌ Manuelles Speichern von Tokens

Verwandte Skills

Funktioniert gut mit: nextjs-app-router, supabase-backend

Individual skills in this repo

This repo contains 13 individual skills — each has its own dedicated page.

marnixGeerkens/rocketlauncher-claude-code

When the user wants to optimize, improve, or increase conversions on any marketing page — including homepage, landing pages, pricing pages, feature pages, or blog posts. Also use when the user says "CRO," "conversion rate optimization," "this page isn't converting," "improve conversions," or "why isn't this page working." For signup/registration flows, see signup-flow-cro. For post-signup activation, see onboarding-cro. For forms outside of signup, see form-cro. For popups/modals, see popup-cro.

marnixGeerkens/rocketlauncher-claude-code

Balance visual design with ATS compatibility for creative roles. Use when the user is in design, art, writing, marketing creative, or any visual/creative field and needs a resume that looks distinctive but still parses.

marnixGeerkens/rocketlauncher-claude-code

Transform resume bullets into detailed portfolio case studies with context, action, and outcome. Use when the user mentions portfolio, case study, project write-up, or expanding a resume bullet into a longer narrative.

marnixGeerkens/rocketlauncher-claude-code

Expert in building portfolios that actually land jobs and clients - not just showing work, but creating memorable experiences. Covers developer portfolios, designer portfolios, creative portfolios, and portfolios that convert visitors into opportunities. Use when: portfolio, personal website, showcase work, developer portfolio, designer portfolio.

marnixGeerkens/rocketlauncher-claude-code

Tailwind CSS v4 principles. CSS-first configuration, container queries, modern patterns, design token architecture.

marnixGeerkens/rocketlauncher-claude-code

Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.

marnixGeerkens/rocketlauncher-claude-code

Frontend development guidelines for React/TypeScript applications. Modern patterns including Suspense, lazy loading, useSuspenseQuery, file organization with features directory, MUI v7 styling, TanStack Router, performance optimization, and TypeScript best practices. Use when creating components, pages, features, fetching data, styling, routing, or working with frontend code.

marnixGeerkens/rocketlauncher-claude-code

Next.js App Router principles. Server Components, data fetching, routing patterns.

marnixGeerkens/rocketlauncher-claude-code

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

marnixGeerkens/rocketlauncher-claude-code

Create API handoff documentation for frontend developers. Use when backend work is complete and needs to be documented for frontend integration, or user says 'create handoff', 'document API', 'frontend handoff', or 'API documentation'.

marnixGeerkens/rocketlauncher-claude-code

Document frontend data needs for backend developers. Use when frontend needs to communicate API requirements to backend, or user says 'backend requirements', 'what data do I need', 'API requirements', or is describing data needs for a UI.

marnixGeerkens/rocketlauncher-claude-code

Comprehensive Python library for astronomy and astrophysics. This skill should be used when working with astronomical data including celestial coordinates, physical units, FITS files, cosmological calculations, time systems, tables, world coordinate systems (WCS), and astronomical data analysis. Use when tasks involve coordinate transformations, unit conversions, FITS file manipulation, cosmological distance calculations, time scale conversions, or astronomical data processing.

marnixGeerkens/rocketlauncher-claude-code

Comprehensive patterns for Next.js 14+ App Router architecture, Server Components, and modern full-stack React development.

Verwandte Skills