diff --git a/packages/deriv_auth/lib/features/social_auth/services/social_web_view_service.dart b/packages/deriv_auth/lib/features/social_auth/services/social_web_view_service.dart index e76cdc0b3..c4353f8af 100644 --- a/packages/deriv_auth/lib/features/social_auth/services/social_web_view_service.dart +++ b/packages/deriv_auth/lib/features/social_auth/services/social_web_view_service.dart @@ -1,9 +1,9 @@ import 'dart:async'; +import 'package:app_links/app_links.dart'; import 'package:deriv_auth/deriv_auth.dart'; import 'package:deriv_web_view/web_view.dart'; import 'package:flutter_deriv_api/helpers/miscellaneous_helper.dart'; -import 'package:uni_links2/uni_links.dart'; /// Service to handle social auth web view. final class SocialAuthWebViewService implements BaseSocialWebViewService { @@ -36,7 +36,7 @@ final class SocialAuthWebViewService implements BaseSocialWebViewService { } void _setupLinkStream(SocialAuthUriHandler uriHandler) { - _uriLinkStream = uriLinkStream.listen( + _uriLinkStream = AppLinks().uriLinkStream.listen( (Uri? uri) { _uriLinkStream?.cancel(); diff --git a/packages/deriv_auth/pubspec.yaml b/packages/deriv_auth/pubspec.yaml index 1f6dfa9a3..d0e221993 100644 --- a/packages/deriv_auth/pubspec.yaml +++ b/packages/deriv_auth/pubspec.yaml @@ -72,7 +72,7 @@ dependencies: package_info_plus: ^4.2.0 crypto: ^3.0.2 http: ^0.13.5 - uni_links2: ^0.6.0+2 + app_links: ^3.4.5 dependency_overrides: deriv_ui: