@authowl/next 0.2.2 → 0.2.5

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 +8 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,10 +1,13 @@
1
1
  # @authowl/next
2
2
 
3
+ **[Complete SDK guide](https://authowl.dev/docs/sdks/next)** ·
4
+ **[Next.js quickstart](https://authowl.dev/docs/getting-started/quickstart-nextjs)**
5
+
3
6
  Next.js (App Router) server helpers for [AuthOwl](https://authowl.dev), the
4
7
  multi-tenant auth service. `auth()` works in Server Components and route handlers.
5
8
 
6
9
  ```bash
7
- pnpm add @authowl/next
10
+ pnpm add @authowl/next @authowl/react
8
11
  ```
9
12
 
10
13
  Zero-config: set the env and call `auth()`.
@@ -27,13 +30,16 @@ export default async function Page() {
27
30
  `initAuth({ publishableKey, apiUrl })` is optional (call it to override the env or
28
31
  surface config errors at boot). For the client-side provider and components, use
29
32
  [`@authowl/react`](https://www.npmjs.com/package/@authowl/react).
33
+ Those components use AuthOwl gold (`#F5B84C`) by default and automatically
34
+ honor project branding or an explicit `appearance.primaryColor` override.
30
35
 
31
36
  **Optional UX middleware** (`@authowl/next/middleware`,
32
37
  `createAuthRedirectMiddleware`) redirects unauthenticated users by cookie
33
38
  presence — it is a UX helper, **not** an authorization boundary. Always authorize
34
39
  on the server with `auth()`, which re-validates against the auth service.
35
40
 
36
- See the full integration guide in the AuthOwl app repo (`INTEGRATION.md`).
41
+ See the [complete Next.js guide](https://authowl.dev/docs/sdks/next) for provider
42
+ setup, server authorization, middleware boundaries, and environment variables.
37
43
 
38
44
  ## License
39
45
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authowl/next",
3
- "version": "0.2.2",
3
+ "version": "0.2.5",
4
4
  "description": "Next.js (App Router) server helpers for AuthOwl, the multi-tenant auth SaaS.",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -51,7 +51,7 @@
51
51
  "LICENSE"
52
52
  ],
53
53
  "dependencies": {
54
- "@authowl/core": "0.10.0"
54
+ "@authowl/core": "0.12.0"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "next": ">=14"