Skip to content

Commit c11766b

Browse files
committed
fix(core): Use popup sign in as the default behavior
1 parent 2e1c809 commit c11766b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/core/src/behaviors/index.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ vi.mock("./require-display-name", () => ({
2222

2323
vi.mock("firebase/auth", () => ({
2424
RecaptchaVerifier: vi.fn(),
25+
signInWithPopup: vi.fn(),
26+
linkWithPopup: vi.fn(),
27+
signInWithRedirect: vi.fn(),
28+
linkWithRedirect: vi.fn(),
2529
}));
2630

2731
beforeEach(() => {

packages/core/src/behaviors/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,6 @@ export function getBehavior<T extends keyof Registry>(ui: FirebaseUI, key: T): R
126126

127127
export const defaultBehaviors: Behavior<"recaptchaVerification"> = {
128128
...recaptchaVerification(),
129-
...providerRedirectStrategy(),
129+
...providerPopupStrategy(),
130130
...countryCodes(),
131131
};

0 commit comments

Comments
 (0)