skip to Main Content

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


  1. I am encountering the same issue. This seems to happen when you tell Flutter to handle deeplinks by setting FlutterDeepLinkingEnabled to YES in your Info.plist file. See https://docs.flutter.dev/cookbook/navigation/set-up-universal-links for details.

    Login or Signup to reply.
  2. Our solution was to ignore this path in the go router onException.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search