mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-10-15 11:15:45 -04:00
fix: disable better-auth update-user endpoint
Names and avatars come from GitHub at sign-up; prevent signed-in users from renaming themselves to impersonate other commenters. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 file changed
+2
@@ -15,6 +15,8 @@ export const auth = betterAuth({
|
||||
schema,
|
||||
}),
|
||||
plugins: [dash(), nextCookies()],
|
||||
// names and avatars come from GitHub at sign-up; don't let users rename themselves (e.g. to impersonate someone)
|
||||
disabledPaths: ["/update-user"],
|
||||
socialProviders: {
|
||||
github: {
|
||||
clientId: process.env.GITHUB_CLIENT_ID!,
|
||||
|
||||
Reference in new issue
Block a user