Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions src/lib/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,11 @@ export const auth = betterAuth({
clientId: process.env.AUTH_GOOGLE_ID!,
clientSecret: process.env.AUTH_GOOGLE_SECRET!,
},
// github: {
// clientId: process.env.GITHUB_CLIENT_ID!,
// clientSecret: process.env.GITHUB_CLIENT_SECRET!,
// },
// Proper LinkedIn configuration
linkedin: {
clientId: process.env.LINKEDIN_CLIENT_ID!,
clientSecret: process.env.LINKEDIN_CLIENT_SECRET!,
},

},
session: {
expiresIn: 60 * 60 * 24 * 30, // 30 days
Expand All @@ -62,15 +58,14 @@ export const auth = betterAuth({
generateId: () => crypto.randomUUID(),
},
},
// Remove hooks temporarily to fix OAuth flow
// We'll implement profile creation differently
trustedOrigins: [
process.env.NEXT_PUBLIC_BASE_URL!,
process.env.BASE_URL!,
].filter(Boolean),
secret: process.env.AUTH_SECRET!,
});


// Export the auth handlers for API routes
export const authHandler = auth.handler;
export const GET = authHandler;
Expand Down