Firebase Extension API Key

Hi there,

I’m trying to set up the firebase extension as defined here: https://docs.moralis.io/docs/web3-firebase-streams

When I run firebase ext:install moralis/moralis-streams the prompt starts, configures the region, and asks for the Moralis API key but never accepts my API key input and just keeps prompting for a key:

Cloud Functions location: Where do you want to deploy the functions created for this extension? For help selecting a location, refer to the location selection guide (https://firebase.google.com/docs/functions/locations).
? Which option do you want enabled for this parameter? Select an option with the arrow keys, and use Enter to confir
m your choice. You may only select one option. South Carolina (us-east1)

Moralis API Key: The API key that is retrievable from the Moralis Admin Panel.
? Where would you like to store your secrets? You must select at least one value Google Cloud Secret Manager (Used b
y deployed extensions and emulator)
? This secret will be stored in Cloud Secret Manager (https://cloud.google.com/secret-manager/pricing) as ext-morali
s-streams-MORALIS_API_KEY and managed by Firebase Extensions (Firebase Extensions Service Agent will be granted Secr
et Admin role on this secret).
Enter a value for Moralis API Key: [hidden]
âš   The app ID must be retrieved from the Moralis Admin Panel.
? This secret will be stored in Cloud Secret Manager (https://cloud.google.com/secret-manager/pricing) as ext-morali
s-streams-MORALIS_API_KEY and managed by Firebase Extensions (Firebase Extensions Service Agent will be granted Secr
et Admin role on this secret).
Enter a value for Moralis API Key: [hidden]
âš   The app ID must be retrieved from the Moralis Admin Panel.
? This secret will be stored in Cloud Secret Manager (https://cloud.google.com/secret-manager/pricing) as ext-morali
s-streams-MORALIS_API_KEY and managed by Firebase Extensions (Firebase Extensions Service Agent will be granted Secr
et Admin role on this secret).
Enter a value for Moralis API Key: [input is hidden] 

I am simply copying my key (I’ve verified it is on the clipboard correctly) and trying to paste but it is not being accepted.

Any idea how to troubleshoot?

Thanks!

if you add a random string instead of the api key what happens?

Exactly the same behaviour, no error or anything just asks me to enter it again.

Possibly nothing is being entered still. Did you try typing in something manually? Does your terminal change similar to the tutorial?

I’ve tried manually typing it, manually typing a random string, pasting the API key, pasting a random string.

The terminal doesn’t show any input, and the cursor only moves if I double paste the key (hitting enter fails again though since obviously the double-pasted key is invalid).

What type of terminal you are using?

I’m using Mac’s build in Terminal (version 2.13) - is there a specific terminal I should be using?

I don’t know if there is any difference based on the terminal. Maybe you can change the scripts to hardcode the api key?

I have this exact same problem except I’m trying to set up the moralis auth extension.

firebase ext:install moralis/moralis-auth

Same issue where it just keeps prompting for the API key, I’ve used different terminals, no luck. Did you ever find a solution?

I see you have posted your hacky solution on our discord. Adding it here for others.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.