Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

try to fix sso

Bill Yang55bf9c60f702
diff --git a/server/src/lib/auth.ts b/server/src/lib/auth.ts
index e6c2e850a..cf634c67e 100644
--- a/server/src/lib/auth.ts
+++ b/server/src/lib/auth.ts
@@ -34,6 +34,16 @@ export let auth: AuthType | null = betterAuth({
emailAndPassword: {
enabled: true,
},
+ socialProviders: {
+ google: {
+ clientId: process.env.GOOGLE_CLIENT_ID!,
+ clientSecret: process.env.GOOGLE_CLIENT_SECRET!,
+ },
+ github: {
+ clientId: process.env.GITHUB_CLIENT_ID!,
+ clientSecret: process.env.GITHUB_CLIENT_SECRET!,
+ },
+ },
deleteUser: {
enabled: true,
},
@@ -78,6 +88,7 @@ export function initAuth(allowedOrigins: string[]) {
// Disable email verification for now
requireEmailVerification: false,
},
+
socialProviders: {
google: {
clientId: process.env.GOOGLE_CLIENT_ID!,