WEB3AUTH_NETWORK not set

Hi

I’m using the Firebase Extension ‘web3auth/web3-wallet-generator@1.0.2’

and when I go through the steps to create a user I see nothing in the Real Time Database

In logs I get the following error:

Error creating Web3Auth user Error: WEB3AUTH_NETWORK not set
at validateEnvironmentVariables (/workspace/lib/index.js:36:15)
at generateWalletAddressHandler (/workspace/lib/index.js:45:9)
at cloudFunction (/workspace/node_modules/firebase-functions/lib/v1/cloud-functions.js:79:23)
at /layers/google.nodejs.functions-framework/functions-framework/node_modules/@google-cloud/functions-framework/build/src/function_wrappers.js:141:25
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

I am using Sapphire Devnet

Thanks

Alick

@alick Welcome Aboard!

The error is indicative that the Web3Auth network has not been set in your implementation code.

Select the Web3Auth Network as sapphire_devnet,sapphire_mainnet or any of the legacy mainnet network mainnet , aqua , or cyan network depending on which environment your project is setup.

You may follow this guide for Firebase Integration:

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