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: articles/quickstart/webapp/nextjs/01-login.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ useCase: quickstart
23
23
Run the following command within your project directory to install the Auth0 Next.js SDK:
24
24
25
25
```sh
26
-
npm install @auth0/nextjs-auth0
26
+
npm install @auth0/nextjs-auth0@3
27
27
```
28
28
29
29
The SDK exposes methods and variables that help you integrate Auth0 with your Next.js application using <ahref="https://nextjs.org/docs/app/building-your-application/routing/route-handlers"target="_blank"rel="noreferrer">Route Handlers</a> on the backend and <ahref="https://reactjs.org/docs/context.html"target="_blank"rel="noreferrer">React Context</a> with <ahref="https://reactjs.org/docs/hooks-overview.html"target="_blank"rel="noreferrer">React Hooks</a> on the frontend.
@@ -50,7 +50,7 @@ The SDK will read these values from the Node.js process environment and automati
50
50
51
51
### Add the dynamic API route handler
52
52
53
-
Create a file at `app/api/auth/<a href="https://nextjs.org/docs/app/building-your-application/routing/route-handlers#dynamic-route-segments" target="_blank" rel="noreferrer">auth0/route.js`. This is your Route Handler file with a Dynamic Route Segment</a>.
53
+
Create a file at `app/api/auth/[auth0]/route.js`. This is your Route Handler file with a <ahref="https://nextjs.org/docs/app/building-your-application/routing/route-handlers#dynamic-route-segments"target="_blank"rel="noreferrer">Dynamic Route Segment</a>.
54
54
55
55
Then, import the `handleAuth` method from the SDK and call it from the `GET` export.
0 commit comments