简体   繁体   中英

sendSignInLinkToEmail with Flutter, Firebase Auth throws error "[firebase_auth/missing-continue-uri] A continue URL must be provided in the request."

Here's my code. I'm attempting to implement Firebase Passwordless Sign in.

final ActionCodeSettings acs = ActionCodeSettings(
        url: 'https://example.com/completeLogin}',
        handleCodeInApp: true,
        iOSBundleId: config.bundleId,
        androidPackageName: config.packageName,
        dynamicLinkDomain: config.firebaseDomain,
        androidInstallApp: true);

    await FirebaseAuth.instance.sendSignInLinkToEmail(
                              email: 'example@domain.com',
                              actionCodeSettings: acs);

To solve this,

A valid continue URL must be provided in the request.

Make sure that the URLs you are providing are valid.

Your URL has a } at the end - url: 'https://example.com/completeLogin}' , which is probably making it invalid.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM