From 172ca7cf82fb82084a7f2081db7572b158d4c6be Mon Sep 17 00:00:00 2001 From: Leander Furumo Date: Wed, 19 Feb 2025 22:04:48 +0100 Subject: [PATCH] add auth scope to provider --- src/pages/api/auth/[...nextauth].ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,