@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.
- package/README.md +18 -1
- 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
|
[](https://www.npmjs.com/package/@chemmangat/msal-next)
|
|
6
|
+
[](https://www.npmjs.com/package/@chemmangat/msal-next)
|
|
7
|
+
[](https://bundlephobia.com/package/@chemmangat/msal-next)
|
|
6
8
|
[](https://opensource.org/licenses/MIT)
|
|
9
|
+
[](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.
|
|
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
|
-
"
|
|
44
|
+
"oauth2",
|
|
40
45
|
"app-router",
|
|
41
46
|
"typescript",
|
|
42
47
|
"sso",
|
|
43
|
-
"
|
|
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",
|