iblai-auth

Add ibl.ai SSO authentication to Next.js 14+ App Router apps.

15|3|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/iblai/vibe --skill iblai-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: iblai-auth
Source: https://github.com/iblai/vibe/tree/main/skills/iblai-auth
Command: npx skills add https://github.com/iblai/vibe --skill iblai-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Add ibl.ai SSO authentication to a vanilla Next.js app, enabling unauthenticated users to redirect to login and establishing a session without API tokens.

Core Features & Use Cases

  • Streamlined SSO integration with ibl.ai SDK for Next.js apps.
  • Guidance for environment setup (iblai.env, PLATFORM, TOKEN) and CLI-based authentication scaffolding.
  • Works with Next.js 14+ App Router, Node.js 18+, and includes a complete setup flow from init to running the app.

Quick Start

Execute a single instruction to initialize ibl.ai authentication in your project and start using the SSO flow.

Frequently Asked Questions about iblai-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add ibl.ai SSO authentication to a Next.js app?

To add ibl.ai SSO authentication to a Next.js app, use the iblai CLI to scaffold the login flow, which redirects unauthenticated users and establishes a session without requiring API tokens.

What environment variables are required for ibl.ai SSO in Next.js?

ibl.ai SSO requires loading environment variables from the iblai.env file and ensuring NEXT_PUBLIC_MAIN_TENANT_KEY is set in your .env.local file for proper platform configuration across environments.

Does ibl.ai SSO authentication work with the Next.js Pages Router?

ibl.ai SSO authentication applies to Next.js 14+ apps using the App Router. It requires Node.js 18+ and is not designed for the older Pages Router architecture.

Why does my ibl.ai session authentication redirect loop during local development?

Session authentication redirects often occur when environment configuration is incomplete. You must properly configure iblai.env variables and ensure the iblai CLI setup is executed correctly in your local Next.js environment.

Can I establish an ibl.ai user session without managing API tokens?

Yes, ibl.ai SSO establishes a user session without API tokens. It redirects unauthenticated users to a login page and returns the session directly to your Next.js application.

What is the best way to scaffold SSO login for an ibl.ai Next.js project?

The best way to scaffold SSO login is executing a single initialization instruction via the iblai CLI, which sets up the complete authentication flow from init to running the app.