Skip to content

Commit 17e451c

Browse files
thevuongndom91
andauthored
chore(docs): update edge-compatibility.mdx code example (#11007)
Co-authored-by: Nico Domino <[email protected]>
1 parent 89012bd commit 17e451c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/pages/guides/edge-compatibility.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const { handlers, auth, signIn, signOut } = NextAuth({
9090
import NextAuth from "next-auth"
9191
import authConfig from "./auth.config"
9292

93-
export const { auth as middleware } = NextAuth(authConfig)
93+
export const { auth: middleware } = NextAuth(authConfig)
9494
```
9595

9696
4. Finally, everywhere else we can import from the primary `auth.ts` configuration and use `next-auth` as usual. See our [session management docs](/getting-started/session-management/protecting) for more examples.

0 commit comments

Comments
 (0)