test(auth): assert Auth.js linking opt-in

This commit is contained in:
ajnart committed 2026-07-22 23:11:36 +02:00
1 parent 4547fb2f79
commit ca592cccb8
1 file changed
+1
@@ -50,6 +50,7 @@ describe("assertVerifiedEmailForCredentialsLinking", () => {
test("OIDC provider rejects an unverified profile when credentials linking is enabled", () => {
mockEnv.AUTH_OIDC_ENABLE_DANGEROUS_CREDENTIALS_LINKING = true;
const provider = OidcProvider(null);
expect(provider.allowDangerousEmailAccountLinking).toBe(true);
const mapProfile = provider.profile;
if (!mapProfile) throw new Error("Expected OIDC profile mapper to be defined");