Skip to content

Commit

Permalink
Fix path in google-oauth/nextjs.md (#1774)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-Chen-Wang authored Feb 8, 2025
1 parent b92ffc8 commit 999c797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/tutorials/google-oauth/nextjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default async function Page() {

## Create authorization URL

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.
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.

```ts
// app/login/google/route.ts
Expand Down

0 comments on commit 999c797

Please sign in to comment.