Skip to content

Commit 6ac28e2

Browse files
docs: add import path (#11214)
* document: add import path * Update google.mdx --------- Co-authored-by: Balázs Orbán <[email protected]>
1 parent a6b3364 commit 6ac28e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/pages/getting-started/providers/google.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ Alternatively, you can also pass options in the `params` object of `authorizatio
9191
If you need access to the RefreshToken or AccessToken for a Google account and you are not using a database to persist user accounts, this may be something you need to do.
9292

9393
```ts filename="app/api/auth/[...nextauth]/route.ts"
94+
import Google from "next-auth/providers/google";
95+
9496
export const { handlers, auth, signIn, signOut } = NextAuth({
9597
providers: [
96-
GoogleProvider({
97-
clientId: process.env.GOOGLE_ID,
98-
clientSecret: process.env.GOOGLE_SECRET,
98+
Google({
9999
authorization: {
100100
params: {
101101
prompt: "consent",

0 commit comments

Comments
 (0)