Short answer
In the Firebase console, open Authentication settings and add the continue URL’s domain under Authorized domains. Then check the url in ActionCodeSettings: it must be a full, valid URL on that domain, and each environment should send its own.
Rather not fix it yourself? App Fix Ticket fixes one reproducible bug at a fixed price, with an optional Diagnosis that is credited toward the fix.
Why the continue URL is rejected, and the fix
01
The domain is not on Authorized domains
“In order to securely pass a continue URL, you need to add the domain for the URL as an authorized domain” Firebase, Passing state in email actions
A new production domain, a staging site or a preview URL has to be added before email links can point to it. Add the exact domain the url uses.
02
The code sends a different domain than you think
“The domain of the continue URL is not whitelisted.” Firebase, Admin Authentication API errors (auth/unauthorized-continue-uri)
A url built from an environment variable or from window.location can point at localhost, a preview host or the old domain. Log the url you pass in ActionCodeSettings and compare it with the Authorized domains list.
03
The url is not a valid URL
“The continue URL must be a valid URL string.” Firebase, Admin Authentication API errors (auth/invalid-continue-uri)
A path without the scheme and host, or a malformed string, can fail with the related auth/invalid-continue-uri. Pass a full URL such as https://example.com/finish.
04
Mobile link settings are a separate check
Not a cause of this error, but check it once the domain is fixed: with handleCodeInApp set to true, the link is sent as a Universal Link or Android App Link and opened by the app if installed, so the iOS bundle ID and Android package name in ActionCodeSettings need to be set and match the app.
Checked against the vendor’s docs on : Firebase docs: Passing state in email actions; Firebase docs: Admin Authentication API errors; Firebase JS SDK reference: firebase/auth.
Rather hand it over?
Fixed scope, fixed price, paid upfront. The work happens in writing; no call needed.
- from $450App Fix TicketOne reproducible bug. The Fix costs $1,200. If you need a Diagnosis first, its $450 fee counts toward the Fix.See scope and start
- from $450AI-Built App RescueFor a whole-app review, the $450 Launch Check is credited toward the optional $1,950 Rescue Sprint for up to five critical or high findings.No issues worth fixing, no charge. If the Launch Check finds nothing rated medium or higher, Simon refunds the full $450. You keep the report either way. This applies to the first 10 Launch Checks bought after October 30, 2026.See scope and start
“Very responsive, attentive to fixing bugs, and completed the project as needed! Thank you!”
Related: Firebase auth/unauthorized-domain · Firebase auth/invalid-action-code · Firebase Dynamic Links shutdown · FCM THIRD_PARTY_AUTH_ERROR