feat: change social provider config to flat config

This commit is contained in:
Bereket Engida
2024-09-23 23:19:22 +03:00
parent 516458aedd
commit 675a9206f9
34 changed files with 111 additions and 501 deletions

View File

@@ -75,14 +75,14 @@ export const auth = betterAuth({
}),
passkey(),
],
socialProvider: [
github({
socialProviders: {
github: {
clientId: process.env.GITHUB_CLIENT_ID || "",
clientSecret: process.env.GITHUB_CLIENT_SECRET || "",
}),
google({
},
google: {
clientId: process.env.GOOGLE_CLIENT_ID || "",
clientSecret: process.env.GOOGLE_CLIENT_SECRET || "",
}),
],
},
},
});