iblai-auth
/iblai-auth
Add ibl.ai SSO authentication to a vanilla Next.js app. After completion, unauthenticated users are redirected to login.iblai.app and returned with a session -- no API tokens to manage.
Templates: the auth files this skill creates (providers, store, SSO callback,
lib/iblai/*) are bundled here as Jinja2 assets —assets/. You render them into the project in Step 3. See/iblai-scaffoldfor the{{ }}variable contract and the shared patch mechanics.
Do NOT ask the user for their platform key. Read PLATFORM from iblai.env
(the user fills it in) and use it as the platform key when you create the
auth files in Step 3. If iblai.env has no real PLATFORM, use the
placeholder your-platform and tell the user to replace it in .env.local
(NEXT_PUBLIC_MAIN_TENANT_KEY).