Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 6bb6ac5

Browse files
Merge pull request #1070 from sud80/dlink_fauth_fix
Dynamic links can be enabled without fauth
2 parents a74214e + fce9ce6 commit 6bb6ac5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/firebase.ios.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,9 @@ firebase.addAppDelegateMethods = appDelegate => {
159159

160160
if (userActivity.webpageURL) {
161161
// check for an email-link-login flow
162-
const fAuth = FIRAuth.auth();
163-
if (fAuth.isSignInWithEmailLink(userActivity.webpageURL.absoluteString)) {
162+
163+
const fAuth = (typeof (FIRAuth) !== "undefined") ? FIRAuth.auth() : undefined;
164+
if (fAuth && fAuth.isSignInWithEmailLink(userActivity.webpageURL.absoluteString)) {
164165
const rememberedEmail = firebase.getRememberedEmailForEmailLinkLogin();
165166
if (rememberedEmail !== undefined) {
166167

0 commit comments

Comments
 (0)