refactor: remove custom username generation logic from auth configuration
This commit is contained in:
@@ -23,11 +23,7 @@ export const auth = betterAuth({
|
||||
clientSecret: process.env.GOOGLE_CLIENT_SECRET!,
|
||||
},
|
||||
},
|
||||
advanced: {
|
||||
generateUsername: async (data) => {
|
||||
return `user_${Date.now()}`;
|
||||
},
|
||||
},
|
||||
|
||||
trustedOrigins: [
|
||||
process.env.APP_BASE_URL ?? 'http://localhost:5173',
|
||||
process.env.BETTER_AUTH_URL ?? 'http://localhost:3000',
|
||||
|
||||
Reference in New Issue
Block a user