1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-10-30 07:26:00 -04:00

fix oauth scopes

This commit is contained in:
2025-05-14 22:20:03 -04:00
parent e67f480980
commit 360d0fda1b

View File

@@ -16,16 +16,12 @@ export const auth = betterAuth({
github: {
clientId: env.AUTH_GITHUB_CLIENT_ID,
clientSecret: env.AUTH_GITHUB_CLIENT_SECRET,
scope: ["read:user"],
disableDefaultScope: true,
mapProfileToUser(profile) {
return {
name: profile.login,
email: profile.email,
emailVerified: true,
image: profile.avatar_url,
};
},
mapProfileToUser: (profile) => ({
name: profile.login,
email: profile.email,
emailVerified: true,
image: profile.avatar_url,
}),
},
},
} satisfies BetterAuthOptions);