Skip to content

Commit 999c797

Browse files
Fix path in google-oauth/nextjs.md (#1774)
1 parent b92ffc8 commit 999c797

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/tutorials/google-oauth/nextjs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default async function Page() {
7070

7171
## Create authorization URL
7272

73-
Create an API route in `pages/login/google/index.ts`. Generate a new state and code verifier, and create a new authorization URL. Add the `openid` and `profile` scope to have access to the user's profile later on. Store the state and code verifier, and redirect the user to the authorization URL. The user will be redirected to Google's sign in page.
73+
Create an API route in `app/login/google/route.ts`. Generate a new state and code verifier, and create a new authorization URL. Add the `openid` and `profile` scope to have access to the user's profile later on. Store the state and code verifier, and redirect the user to the authorization URL. The user will be redirected to Google's sign in page.
7474

7575
```ts
7676
// app/login/google/route.ts

0 commit comments

Comments
 (0)