| void onLink(DynamicLinkEvent event) { |
| var link = event.data?.link?.toString(); |
| if (link != null && _firebaseAuth.isSignInWithEmailLink(link)) { |
| var url = Uri.parse(event.data.link.queryParameters['continueUrl']); |
| var email = url.queryParameters['e']; |
| print('Auth Error $error'); |
| test: (e) => e is FirebaseAuthException, |
| void onLink(DynamicLinkEvent event) { |
| var link = event.data?.link?.toString(); |
| if (link != null && _firebaseAuth.isSignInWithEmailLink(link)) { |
| var url = Uri.parse(event.data.link.queryParameters['continueUrl']); |
| var email = url.queryParameters['e']; |
| .signInWithEmailLink(email: email, emailLink: link) |
| print('Auth Error $error'); |
| }, test: (e) => e is FirebaseAuthException) |