Invalid API Key for getCurrentUser (Firebase) function

Keep getting an error about the last current user isnt retrieved because there is an invalid apikey when i call the getCurrentUser (firebase) function.
Are there some parameters, needed to be passed to the function in order for it to work without error?
Currently we have our apiKey stored in the app variables
Thanks for the help!