Skip to content

Commit ab6a3cf

Browse files
committed
Rollback change to auth-compat and update demo
1 parent 289c957 commit ab6a3cf

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

packages/auth-compat/src/recaptcha_verifier.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,13 @@ export class RecaptchaVerifier
3737
appName: app.name
3838
});
3939
this._delegate = new exp.RecaptchaVerifier(
40-
// TODO: remove ts-ignore when moving types from auth-types to auth-compat
41-
// @ts-ignore
42-
app.auth!(),
4340
container,
4441
// eslint-disable-next-line @typescript-eslint/no-explicit-any
45-
parameters as any
42+
parameters as any,
43+
44+
// TODO: remove ts-ignore when moving types from auth-types to auth-compat
45+
// @ts-ignore
46+
app.auth!()
4647
);
4748
this.type = this._delegate.type;
4849
}

packages/auth/demo/src/index.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -521,11 +521,9 @@ function onSignInWithGenericIdPCredential() {
521521
function makeApplicationVerifier(submitButtonId) {
522522
const container =
523523
recaptchaSize === 'invisible' ? submitButtonId : 'recaptcha-container';
524-
applicationVerifier = new RecaptchaVerifier(
525-
container,
526-
{ 'size': recaptchaSize },
527-
auth
528-
);
524+
applicationVerifier = new RecaptchaVerifier(auth, container, {
525+
'size': recaptchaSize
526+
});
529527
}
530528

531529
/**

0 commit comments

Comments
 (0)