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.