Skip to content

Commit

Permalink
Add scope to identify user
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbar01234 committed Apr 14, 2024
1 parent 764eef2 commit fe22d47
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/api/auth/[...nextauth]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ import { prisma } from "@server/db/client";
import NextAuth, { NextAuthOptions } from "next-auth";
import GoogleProvider from "next-auth/providers/google";

const GOOGLE_API_SCOPE = ["openid"];
const GOOGLE_API_SCOPE = [
"openid",
"https://www.googleapis.com/auth/userinfo.profile",
"https://www.googleapis.com/auth/userinfo.email",
];

export const authOptions: NextAuthOptions = {
adapter: PrismaAdapter(prisma),
Expand Down

0 comments on commit fe22d47

Please sign in to comment.