Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🐛 Handle legacy google and microsoft redirect uris (#2016)
Luke Vellaed0e246fd7eb
diff --git a/apps/web/next.config.js b/apps/web/next.config.jsindex 6778567e5..438152b53 100644--- a/apps/web/next.config.js+++ b/apps/web/next.config.js@@ -62,6 +62,16 @@ const nextConfig = {destination: "/api/better-auth/oauth2/callback/oidc",permanent: false,},+ {+ source: "/api/auth/callback/google",+ destination: "/api/better-auth/callback/google",+ permanent: false,+ },+ {+ source: "/api/auth/callback/microsoft-entra-id",+ destination: "/api/better-auth/callback/microsoft",+ permanent: false,+ },];},devIndicators: {diff --git a/apps/web/src/lib/auth.ts b/apps/web/src/lib/auth.tsindex 21a1be27a..416ef7bca 100644--- a/apps/web/src/lib/auth.ts+++ b/apps/web/src/lib/auth.ts@@ -149,6 +149,7 @@ export const authLib = betterAuth({? {clientId: env.GOOGLE_CLIENT_ID,clientSecret: env.GOOGLE_CLIENT_SECRET,+ redirectURI: absoluteUrl("/api/auth/callback/google"),}: undefined,microsoft:@@ -157,6 +158,7 @@ export const authLib = betterAuth({tenantId: env.MICROSOFT_TENANT_ID,clientId: env.MICROSOFT_CLIENT_ID,clientSecret: env.MICROSOFT_CLIENT_SECRET,+ redirectURI: absoluteUrl("/api/auth/callback/microsoft-entra-id"),}: undefined,},