diff --git a/src/pages/api/auth/[...nextauth].ts b/src/pages/api/auth/[...nextauth].ts index d9f6dc6..ec23326 100644 --- a/src/pages/api/auth/[...nextauth].ts +++ b/src/pages/api/auth/[...nextauth].ts @@ -11,7 +11,8 @@ export const authOptions = { checks: ["pkce", "state"], clientId: process.env.GALTINN_ID, clientSecret: process.env.GALTINN_SECRET, - + authorization: { params: { scope: "openid email profile" } }, + profile(profile) { return { id: profile.sub,