@chemmangat/msal-next 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +18 -1
  2. package/package.json +21 -3
package/README.md CHANGED
@@ -3,7 +3,10 @@
3
3
  Production-grade MSAL authentication library for Next.js App Router with minimal boilerplate.
4
4
 
5
5
  [![npm version](https://badge.fury.io/js/@chemmangat%2Fmsal-next.svg)](https://www.npmjs.com/package/@chemmangat/msal-next)
6
+ [![npm downloads](https://img.shields.io/npm/dm/@chemmangat/msal-next.svg)](https://www.npmjs.com/package/@chemmangat/msal-next)
7
+ [![bundle size](https://img.shields.io/bundlephobia/minzip/@chemmangat/msal-next)](https://bundlephobia.com/package/@chemmangat/msal-next)
6
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
9
+ [![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue.svg)](https://www.typescriptlang.org/)
7
10
 
8
11
  ## Features
9
12
 
@@ -13,7 +16,21 @@ Production-grade MSAL authentication library for Next.js App Router with minimal
13
16
  🊝 **Powerful Hooks** - Easy-to-use hooks for auth, Graph API, and user data
14
17
  ðŸ›Ąïļ **Type Safe** - Full TypeScript support with generics for custom claims
15
18
  ⚡ **Edge Compatible** - Middleware support for protecting routes at the edge
16
- ðŸ“Ķ **Zero Config** - Sensible defaults with full customization options
19
+ ðŸ“Ķ **Zero Config** - Sensible defaults with full customization options
20
+ ðŸŠķ **Lightweight** - Only 80KB unpacked, tree-shakeable
21
+
22
+ ## Why Choose This?
23
+
24
+ | Feature | @chemmangat/msal-next | NextAuth.js | Manual MSAL Setup |
25
+ |---------|----------------------|-------------|-------------------|
26
+ | Next.js App Router | ✅ Native | ⚠ïļ Limited | ❌ Manual |
27
+ | Microsoft Graph API | ✅ Built-in hooks | ❌ Manual | ❌ Manual |
28
+ | TypeScript | ✅ Full support | ✅ Partial | ⚠ïļ Complex |
29
+ | Setup Time | ⏱ïļ 2 minutes | ⏱ïļ 15 minutes | ⏱ïļ 60+ minutes |
30
+ | Bundle Size | ðŸ“Ķ 80KB | ðŸ“Ķ 200KB+ | ðŸ“Ķ Varies |
31
+ | Pre-built Components | ✅ 7 components | ❌ None | ❌ None |
32
+ | Edge Middleware | ✅ Yes | ✅ Yes | ❌ Manual |
33
+ | Role-Based Access | ✅ Built-in | ❌ Manual | ❌ Manual |
17
34
 
18
35
  ## Installation
19
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chemmangat/msal-next",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Production-grade MSAL authentication package for Next.js App Router with minimal boilerplate",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -32,15 +32,33 @@
32
32
  "keywords": [
33
33
  "msal",
34
34
  "nextjs",
35
+ "next.js",
36
+ "next",
35
37
  "authentication",
38
+ "auth",
36
39
  "azure-ad",
40
+ "azure",
37
41
  "microsoft",
42
+ "microsoft-authentication",
38
43
  "oauth",
39
- "next.js",
44
+ "oauth2",
40
45
  "app-router",
41
46
  "typescript",
42
47
  "sso",
43
- "microsoft-graph"
48
+ "single-sign-on",
49
+ "microsoft-graph",
50
+ "graph-api",
51
+ "azure-active-directory",
52
+ "entra-id",
53
+ "login",
54
+ "signin",
55
+ "react",
56
+ "msal-react",
57
+ "msal-browser",
58
+ "next14",
59
+ "next15",
60
+ "nextjs-auth",
61
+ "microsoft-login"
44
62
  ],
45
63
  "author": "Chemmangat",
46
64
  "license": "MIT",