I’m trying to setup the Firebase auth extension but i’m not sure of what key i should use. I’ve tried the main key (longest one that i found on the home screen) but terminal refuses to accept it, then i’ve tried the legacy keys “Cli Api Key” and “Cli Api Secret” and both didn’t work as well:
! The API key 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-moralis-auth-MORALIS_API_KEY and managed by Firebase Extensions (Firebase Extensions Service Agent will be granted Secret Admin role on this secret).
Enter a value for Moralis API Key: [input is hidden]
Finally, the “Moralis Secret” (64 char long) seemed to work. But i got an 400 unauthorized error when i call the ext-moralis-auth-requestMessage cloud function:
ext-moralis-auth-requestMessage
vghh9l0h4co0
Unhandled error MoralisError [Moralis SDK Core Error]: [C0006] Request failed, Bad Request(400): Unauthorized
at RequestController.makeError (/workspace/node_modules/@moralisweb3/core/lib/controllers/RequestController/RequestController.js:119:20)
at RequestController. (/workspace/node_modules/@moralisweb3/core/lib/controllers/RequestController/RequestController.js:100:38)
at step (/workspace/node_modules/@moralisweb3/core/lib/controllers/RequestController/RequestController.js:44:23)
at Object.throw (/workspace/node_modules/@moralisweb3/core/lib/controllers/RequestController/RequestController.js:25:53)
at rejected (/workspace/node_modules/@moralisweb3/core/lib/controllers/RequestController/RequestController.js:17:65)
at processTicksAndRejections (internal/process/task_queues.js:95:5) {
isMoralisError: true,
code: ‘C0006’,
details: {
status: 400,
response: {
status: 400,
statusText: ‘Bad Request’,
headers: [Object],
config: [Object],
request: [ClientRequest],
data: [Object]
}
},
Does Firebase Auth Extension can be used with a free plan?
And if yes, what’s the right key that i need to use here? Because this worked like 6 months ago with the old api key.