Skip to content

Commit b77c59c

Browse files
committed
Rollback change to auth-compat and update demo
1 parent f915687 commit b77c59c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,9 +522,9 @@ function makeApplicationVerifier(submitButtonId) {
522522
const container =
523523
recaptchaSize === 'invisible' ? submitButtonId : 'recaptcha-container';
524524
applicationVerifier = new RecaptchaVerifier(
525+
auth,
525526
container,
526-
{ 'size': recaptchaSize },
527-
auth
527+
{ 'size': recaptchaSize }
528528
);
529529
}
530530

0 commit comments

Comments
 (0)