Integrate Platform Auth

Official

Add cross-subdomain auth to your Next.js app

Authorstellarone
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill solves the problem of integrating platform-auth login and session handling into a Next.js consumer app without breaking SSO across *.stellarone.ai.

Core Features & Use Cases

  • Environment setup: Adds the required Supabase and PLATFORM_AUTH_URL variables to ensure the app can validate sessions and talk to the platform-auth service.
  • Session and auth wiring: Guides copying the browser and server Supabase clients plus server-side session/user helpers and server auth guards for protected routes.
  • API proxy routes: Provides thin Next.js proxy endpoints for the platform-auth flows (login, logout, signup, OTP verification, password resets, invite/bootstrap, and signup validation) to keep auth traffic consistent and centralized.
  • Cross-subdomain SSO cookies: Configures cookie options (domain, path, sameSite, secure) so sessions persist across all apps under *.stellarone.ai.
  • Use Case: You want to enable org-based sign-in for a new Next.js app so authenticated users land in protected areas automatically, while unauthenticated users get redirected to /auth.

Quick Start

Ask to integrate Platform Auth by setting PLATFORM_AUTH_URL and copying the listed Supabase session files and auth proxy routes, then protect your app layout using withOrgAuth.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Integrate Platform Auth
Download link: https://github.com/stellarone/evaluate/archive/main.zip#integrate-platform-auth

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.