I’m making a Flutter app with go_router as my router. Everything works fine, but when I want to authenticate myself with Firebase, the code is sent, but then I’m redirected to an unknown route "link".
However, I never wrote this route, and it blocks me since I got an error screen from go_router :
GoException: no routes for location: /link?deep_link_id=https://appid.firebaseapp.com/__/auth/callback?authType=verifyApp&recaptchaToken=somecaptchadata&eventId=zwmpjkyfjc
May someone here could know why I got this error only on iOS, and how can I handle this case for the recaptcha ?
I’m using go_router 12.0.1
and firebase_auth 4.12.0
.
Thank you very much.
I tried pretty much everything I saw in every docs Firebase gave us. This issue seems not to be reported by someone else. I don’t really understand why the captcha verification is a success, but redirect me to a route.
2
Answers
I am encountering the same issue. This seems to happen when you tell Flutter to handle deeplinks by setting
FlutterDeepLinkingEnabled
toYES
in your Info.plist file. See https://docs.flutter.dev/cookbook/navigation/set-up-universal-links for details.Our solution was to ignore this path in the go router onException.