Turns out the api key I was using (the one in the apiKey
field of my firebase config object) did not have my *.firebaseapp.com domain set up in the website restrictions section. adding it there allowed it to work although i suspect theres a better way to get it working for localhost? its solved my issue for now though