Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🐛 Link OIDC sign-ins to existing users by email (#3407)

Luke Vella4885c7fc2a1d
diff --git a/apps/web/src/lib/auth.ts b/apps/web/src/lib/auth.ts
index 23354c722..5f054baf0 100644
--- a/apps/web/src/lib/auth.ts
+++ b/apps/web/src/lib/auth.ts
@@ -346,6 +346,10 @@ export const authLib = betterAuth({
account: {
accountLinking: {
enabled: true,
+ // The OIDC provider is the instance's own directory, and many omit the
+ // email_verified claim. Without trust, a user whose row predates their
+ // first OIDC sign-in (an email login, or a changed subject) is refused.
+ trustedProviders: ["oidc"],
},
fields: {
providerId: "provider",