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

Commit 4a04c34

Browse files
Merge pull request #960 from vratojr/master
EmailLinkAuthentication - Don't check action type when resuming app.
2 parents b4b3255 + b69323c commit 4a04c34

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/firebase.android.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,10 @@ const dynamicLinksEnabled = lazy(() => typeof (com.google.firebase.dynamiclinks)
4747
firebaseMessaging.onAppModuleLaunchEvent(args);
4848
}
4949

50-
const intent = args.android;
51-
const isLaunchIntent = "android.intent.action.VIEW" === intent.getAction();
52-
53-
if (isLaunchIntent && dynamicLinksEnabled()) {
50+
if (dynamicLinksEnabled()) {
5451
// let's see if this is part of an email-link authentication flow
5552
const firebaseAuth = com.google.firebase.auth.FirebaseAuth.getInstance();
56-
const emailLink = "" + intent.getData();
53+
const emailLink = "" + args.android.getData();
5754
if (firebaseAuth.isSignInWithEmailLink(emailLink)) {
5855
const rememberedEmail = firebase.getRememberedEmailForEmailLinkLogin();
5956
if (rememberedEmail !== undefined) {

0 commit comments

Comments
 (0)