Production-ready MSAL authentication with zero configuration.
TypeScript-first, secure, and developer-friendly.
npx @chemmangat/msal-next-cli initProduction-ready features that developers love
Run npx init and answer a few prompts. The CLI writes .env.local, wires MSALProvider into layout.tsx, and creates a starter auth page — no boilerplate to copy.
Learn morenpx @chemmangat/msal-next-cli init
# ✔ Client ID? 97f1e8c5-...
# ✔ Tenant ID? common
# ✔ Cache? sessionStorage
# ✅ .env.local created
# ✅ layout.tsx updated
# ✅ app/auth/page.tsx createdScaffold a full auth setup in one command
# Scaffold everything interactively
npx @chemmangat/msal-next-cli init
# Migrate popup → redirect calls
npx @chemmangat/msal-next-cli migrate
# Or install the package directly
npm install @chemmangat/msal-next