Skip to content

Commit

Permalink
docs: Update example.md (#7879)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjared authored Jun 27, 2023
1 parent dcb576f commit 0167e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/getting-started/example.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ If you are using TypeScript, NextAuth.js comes with its types definitions within

To add NextAuth.js to a project create a file called `[...nextauth].js` in `pages/api/auth`. This contains the dynamic route handler for NextAuth.js which will also contain all of your global NextAuth.js configurations.

If you're using [Next.js 13.2](https://nextjs.org/blog/next-13-2#custom-route-handlers) or above with the new App Router (`app/`), you can initialize the configuration using the new [Route Handlers](https://beta.nextjs.org/docs/routing/route-handlers) by following our [guide](https://next-auth.js.org/configuration/initialization#route-handlers-app).
If you're using [Next.js 13.2](https://nextjs.org/blog/next-13-2#custom-route-handlers) or above with the new App Router (`app/`), you can initialize the configuration using the new [Route Handlers](https://nextjs.org/docs/app/building-your-application/routing/router-handlers) by following our [guide](https://next-auth.js.org/configuration/initialization#route-handlers-app).

```javascript title="pages/api/auth/[...nextauth].js" showLineNumbers
import NextAuth from "next-auth"
Expand Down

1 comment on commit 0167e93

@vercel
Copy link

@vercel vercel bot commented on 0167e93 Jun 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.