Skip to content

Commit e1b17a5

Browse files
committed
Add check for the presence of the DOM in recaptcha verifier
1 parent b3f2eef commit e1b17a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages-exp/auth-exp/src/platform_browser/recaptcha/recaptcha_verifier.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ export class RecaptchaVerifier
168168
this.auth,
169169
AuthErrorCode.ARGUMENT_ERROR
170170
);
171+
_assert(typeof document !== 'undefined', this.auth, AuthErrorCode.OPERATION_NOT_SUPPORTED);
171172
}
172173

173174
private makeTokenCallback(

0 commit comments

Comments
 (0)