Skip to content

Commit 268bb07

Browse files
committed
chore: synchronize workspaces
1 parent 17cb801 commit 268bb07

1 file changed

Lines changed: 13 additions & 20 deletions

File tree

packages/nextjs/README.md

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,16 @@
22

33
This package contains the Next.js SDK for Ory. It provides a set of React
44
components, server-side components, and hooks to interact with the Ory
5-
ecosystem.
5+
ecosystem. Supports both app and page routers.
66

7-
<<<<<<< Updated upstream
8-
Supports both app and page routers.
9-
=======
107
> [!NOTE]
118
> This package's primary use case is for developing custom components for login,
129
> registration, verification, settings, recovery, or consent. For integrating
1310
> authentication without changing the UI, follow our
1411
> [guide for Auth.js](https://www.ory.sh/docs/getting-started/integrate-auth/auth-js).
1512
16-
This middleware expects environment variable `NEXT_PUBLIC_ORY_SDK_URL` to be set
17-
to your Ory Network Project SDK URL. This is the URL that you would use to
18-
access the Ory API. If you have a custom domain for your Ory Network Project,
19-
you should use the custom domain for `NEXT_PUBLIC_ORY_SDK_URL`.
20-
>>>>>>> Stashed changes
21-
22-
## Installation
23-
24-
Run `npm install @ory/nextjs` or `yarn add @ory/nextjs` to install the package.
13+
## Use case
2514

26-
## Examples
27-
28-
<<<<<<< Updated upstream
29-
See the [examples](../../examples) directory for examples on how to use the
30-
package.
31-
=======
3215
This package includes a middleware for the app and page router that enables
3316
local development and preview environments to work with
3417
[Ory's cookie security model](https://www.ory.sh/docs/security-model). When
@@ -40,11 +23,21 @@ and
4023
[page router](https://github.com/ory/elements/blob/main/examples/nextjs-pages-router/middleware.ts)
4124
middleware example for more details.
4225

26+
## Installation
27+
28+
Run `npm install @ory/nextjs` or `yarn add @ory/nextjs` to install the package.
29+
30+
## Configuration
31+
32+
This middleware expects environment variable `NEXT_PUBLIC_ORY_SDK_URL` to be set
33+
to your Ory Network Project SDK URL. This is the URL that you would use to
34+
access the Ory API. If you have a custom domain for your Ory Network Project,
35+
you should use the custom domain for `NEXT_PUBLIC_ORY_SDK_URL`.
36+
4337
## Learn by example
4438

4539
See the [examples](https://github.com/ory/elements/blob/main/examples) directory
4640
for examples on how to use the package.
47-
>>>>>>> Stashed changes
4841

4942
## Development
5043

0 commit comments

Comments
 (0)