mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-10-30 03:16:03 -04:00
fix oauth scopes
This commit is contained in:
16
lib/auth.ts
16
lib/auth.ts
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user