Skip to content

Commit

Permalink
docs: fix file import (#10692)
Browse files Browse the repository at this point in the history
Make code more consistent with installation page (https://authjs.dev/getting-started/installation)
  • Loading branch information
danielzsh authored Apr 23, 2024
1 parent b39a08b commit 9bb56dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/pages/guides/configuring-github.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ export const { handlers, auth } = NextAuth({
})
```

```ts filename="app/api/auth/[...nextauth]/route.ts"
export { GET, POST } from "./auth"
```ts filename="./app/api/auth/[...nextauth]/route.ts"
import { handlers } from "@/auth" // Referring to the auth.ts we just created
export const { GET, POST } = handlers
export const runtime = "edge" // optional
```

Expand Down

0 comments on commit 9bb56dd

Please sign in to comment.