mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-08-23 14:52:18 +10:00
fix(auth): allow implicit social signup
This commit is contained in:
@@ -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);
|
||||
},
|
||||
);
|
||||
});
|
||||
Reference in New Issue
Block a user