next-sanctum 0.1.0 → 0.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 +5 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/aliziodev/next-sanctum/actions/workflows/ci.yml)
|
|
4
4
|
[](https://www.npmjs.com/package/next-sanctum)
|
|
5
|
-
[](https://
|
|
6
|
-
[](https://npm-stat.com/charts.html?package=next-sanctum)
|
|
6
|
+
[](https://packagephobia.now.sh/result?p=next-sanctum)
|
|
7
|
+
[](https://bundlephobia.com/package/next-sanctum@latest)
|
|
8
|
+
[](https://github.com/aliziodev/next-sanctum/blob/main/LICENSE)
|
|
8
9
|
|
|
9
10
|
A complete **Laravel (Fortify + Sanctum)** authentication client for the **Next.js** App Router.
|
|
10
11
|
Cookie/CSRF SPA + token/Bearer modes, SSR & CSR, route protection via `proxy.ts`, **2FA**,
|
|
@@ -14,7 +15,7 @@ Cookie/CSRF SPA + token/Bearer modes, SSR & CSR, route protection via `proxy.ts`
|
|
|
14
15
|
- ✅ SSR (Server Component, Route Handler, Server Action) + Client hooks
|
|
15
16
|
- ✅ Authenticated data fetching — reads (`useApi`), mutations (`useClient`), server (`serverFetch`)
|
|
16
17
|
- ✅ Full Fortify flows · 2FA TOTP · Passkeys (interop with `@laravel/passkeys`)
|
|
17
|
-
- ✅ TypeScript-first, dual ESM/CJS, tree-shakeable, **zero runtime deps** (~
|
|
18
|
+
- ✅ TypeScript-first, dual ESM/CJS, tree-shakeable, **zero runtime deps** (~6 kB gzip)
|
|
18
19
|
|
|
19
20
|
> Compatible with **Next.js 15/16**, **React 18/19**, **Node 18.18+**.
|
|
20
21
|
|