Skip to content

Commit dcfa646

Browse files
committed
fix: Fixed various problems with deep links.
1 parent d8491fb commit dcfa646

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

android/app/src/main/AndroidManifest.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,23 @@
3737
<data
3838
android:host="login.openauthenticator.app"
3939
android:scheme="https" />
40+
</intent-filter>
41+
<intent-filter android:autoVerify="true">
42+
<action android:name="android.intent.action.VIEW" />
43+
44+
<category android:name="android.intent.category.DEFAULT" />
45+
<category android:name="android.intent.category.BROWSABLE" />
46+
4047
<data
4148
android:host="open-authenticator-by-skyost.firebaseapp.com"
4249
android:scheme="https" />
50+
</intent-filter>
51+
<intent-filter android:autoVerify="true">
52+
<action android:name="android.intent.action.VIEW" />
53+
54+
<category android:name="android.intent.category.DEFAULT" />
55+
<category android:name="android.intent.category.BROWSABLE" />
56+
4357
<data
4458
android:host="totp"
4559
android:scheme="otpauth" />

lib/main.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@ class _RouteWidgetState extends ConsumerState<_RouteWidget> {
298298
switch (mode) {
299299
case 'signIn':
300300
EmailLinkAuthenticationProvider emailAuthenticationProvider = ref.read(emailLinkAuthenticationProvider.notifier);
301+
if (!(await emailAuthenticationProvider.isWaitingForConfirmation())) {
302+
return;
303+
}
301304
Result<AuthenticationObject> result = await emailAuthenticationProvider.confirm(context, link.toString());
302305
if (mounted) {
303306
AccountUtils.handleAuthenticationResult(context, ref, result);

0 commit comments

Comments
 (0)