Please provide the following details too when asking for help in this category:
- SDK Version:
- Verifier Details:
- Verifier Name:
- JWKS Endpoint:
- Sample idToken(JWT)
Hi i am trying to get a private key at the backend using web3Auth node sfa sdk with version 2.0.1 and 3.0.0. i am getting the following error
ERROR: Error in getSocialLoginShare: Error: Sorry, the Torus Network that powers Web3Auth is currently very busy.
We will generate your key in time. Pls try again later.
Only absolute URLs are supported
here is the code i have
const web3auth = new Web3Auth({
clientId: process.env.WEB3AUTH_CLIENT_ID,
web3AuthNetwork: process.env.WEB3AUTH_NETWORK,
});
const ethereumProvider = new EthereumPrivateKeyProvider({
config: {
chainConfig: {
chainNamespace: "eip155",
chainId: process.env.WEB3AUTH_CHAIN_ID,
rpcTarget: rpcUrl,
},
},
});
web3auth.init({provider: ethereumProvider});
const provider = await web3auth.connect({
verifier: process.env.WEB3AUTH_VERIFIER_NAME,
verifierId: verifierId,
idToken: idToken,
});
// logger.info(`provider: ${provider.toString()}`);
let privateKey = await provider.request({method: "eth_private_key"});
I have tried both this snippet and the example at https://github.com/Web3Auth/web3auth-core-kit-examples/tree/main/node-sdk/node-backend-example but i still get either the error i describe above or the following
export * from “./interface”;
^^^^^^
SyntaxError: Unexpected token ‘export’
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1178:20)
at Module._compile (node:internal/modules/cjs/loader:1220:27)
at Module._extensions…js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at ModuleWrap. (node:internal/modules/esm/translators:169:29)
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
Node.js v18.17.0
Please help me resolve this issue.