From 799bea433c7f79ca9cfa3cde228a4a0e52eb89e7 Mon Sep 17 00:00:00 2001 From: Rita Zerrizuela Date: Tue, 12 Dec 2023 22:11:15 -0300 Subject: [PATCH] Clarify step in Next.js QS --- articles/quickstart/webapp/nextjs/01-login.md | 2 +- articles/quickstart/webapp/nextjs/interactive.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/articles/quickstart/webapp/nextjs/01-login.md b/articles/quickstart/webapp/nextjs/01-login.md index f23cd7ec60..5695369845 100644 --- a/articles/quickstart/webapp/nextjs/01-login.md +++ b/articles/quickstart/webapp/nextjs/01-login.md @@ -52,7 +52,7 @@ The SDK will read these values from the Node.js process environment and automati Create a file at `app/api/auth/[auth0]/route.js`. This is your Route Handler file with a [Dynamic Route Segment](https://nextjs.org/docs/app/building-your-application/routing/route-handlers#dynamic-route-segments). -Then, import the `handleAuth` method from the SDK, and export the result of calling it from the `GET` export. +Then, import the `handleAuth` method from the SDK and call it from the `GET` export. ```javascript // app/api/auth/[auth0]/route.js diff --git a/articles/quickstart/webapp/nextjs/interactive.md b/articles/quickstart/webapp/nextjs/interactive.md index e792e7b77b..8d7f65da7a 100644 --- a/articles/quickstart/webapp/nextjs/interactive.md +++ b/articles/quickstart/webapp/nextjs/interactive.md @@ -62,7 +62,7 @@ This QuickStart targets the Next.js [App Router](https://nextjs.org/docs/app). I Create a file at `app/api/auth/[auth0]/route.js`. This is your Route Handler file with a [Dynamic Route Segment](https://nextjs.org/docs/app/building-your-application/routing/route-handlers#dynamic-route-segments). -Then, import in that file the `handleAuth` method from the SDK, and export the result of calling it from the `GET` export. This creates the following routes: +Then, import the `handleAuth` method from the SDK and call it from the `GET` export. This creates the following routes: - `/api/auth/login`: The route used to perform login with Auth0. - `/api/auth/logout`: The route used to log the user out.