You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/basic/README.md
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,9 @@ This basic example demonstrates how to use the `payload-authjs` plugin.
4
4
5
5
## Configuration
6
6
7
-
- The authentication configuration is located in `src/auth.config.ts` and the NextAuth instance is created in `src/auth.ts`.
7
+
- The Auth.js configuration is located in `src/auth.config.ts` and the NextAuth instance is created in `src/auth.ts`.
8
8
- In the Payload CMS configuration (`src/payload.config.ts`), we added the `payload-authjs` plugin.
9
-
10
-
The `middleware.example.ts` file demonstrates how to set up the middleware of Auth.js to be [edge-compatible](https://authjs.dev/guides/edge-compatibility). To use the middleware example, just rename the file to `middleware.ts`.
9
+
- The middleware uses the authConfig from `src/auth.config.ts` to be [edge-compatible](https://authjs.dev/guides/edge-compatibility).
0 commit comments