fix(auth): allow implicit social signup

This commit is contained in:
Amruth Pillai
2026-08-13 09:23:04 +02:00
parent 0e463883af
commit 2d6ea9ce8d
5 changed files with 174 additions and 27 deletions
+15
View File
@@ -0,0 +1,15 @@
import { describe, expect, it } from "vitest";
import { env } from "@reactive-resume/env/server";
import { auth } from "./config";
describe("social provider signup policy", () => {
it.each(["google", "github", "linkedin"] as const)(
"allows implicit signup through %s while honoring the global signup restriction",
(provider) => {
const config = auth.options.socialProviders?.[provider];
expect(config).not.toHaveProperty("disableImplicitSignUp");
expect(config?.disableSignUp).toBe(env.FLAG_DISABLE_SIGNUPS);
},
);
});