"error": "User verification required, but user could not be verified",
I’m getting this error again and again
on register getting this error, login successful but after that when register it gives erro
sdk version: “@web3auth/base”: “^9.4.5”,
“@web3auth/ethereum-provider”: “^9.4.5”,
“@web3auth/passkeys-sfa-plugin”: “^9.0.0”,
“@web3auth/single-factor-auth”: “^9.3.0”,
my code:
const ethereumPrivateKeyProvider = new EthereumPrivateKeyProvider({
config: { chainConfig },
});
const web3AuthOptions = {
clientId,
chainConfig: { …chainConfig, chainNamespace: CHAIN_NAMESPACES.EIP155 },
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_DEVNET,
usePnPKey: false,
privateKeyProvider: ethereumPrivateKeyProvider,
};
const web3auth = new Web3Auth(web3AuthOptions);
const passkeysPlugin = new PasskeysPlugin({
rpID: "localhost",
rpName: "localhosttest",
});
web3auth.addPlugin(passkeysPlugin); // Add the plugin to web3auth
await web3auth.init();
const idToken = "eyJhbGciOiJSUzI1NiIsImtpZCI6IjU2NGZlYWNlYzNlYmRmYWE3MzExYjlkOGU3M2M0MjgxOGYyOTEyNjQiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL2FjY291bnRzLmdvb2dsZS5jb20iLCJhenAiOiI1MTkyMjg5MTE5MzktY3JpMDFoNTVsc2pic2lhMWs3bGw2cXBhbHJ1czc1cHMuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJhdWQiOiI1MTkyMjg5MTE5MzktY3JpMDFoNTVsc2pic2lhMWs3bGw2cXBhbHJ1czc1cHMuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJzdWIiOiIxMTQwMTMzNjM3MDAyNzQ1NzI3MTEiLCJoZCI6InN1ZmZlc2NvbS5jbyIsImVtYWlsIjoicGFydmluZGVyQHN1ZmZlc2NvbS5jbyIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJuYmYiOjE3MzQxMDQ1MDksIm5hbWUiOiJQYXJ2aW5kZXIgS3VtYXIiLCJwaWN0dXJlIjoiaHR0cHM6Ly9saDMuZ29vZ2xldXNlcmNvbnRlbnQuY29tL2EvQUNnOG9jSXVtWFBncEJKNUpyTVU2bkZBOWRBZjRwLW9yb29hZUJ2MXpvSDBsUEhPb21OMGRRPXM5Ni1jIiwiZ2l2ZW5fbmFtZSI6IlBhcnZpbmRlciIsImZhbWlseV9uYW1lIjoiS3VtYXIiLCJpYXQiOjE3MzQxMDQ4MDksImV4cCI6MTczNDEwODQwOSwianRpIjoiOTM3NGMxYWRhNTdiOTdiZThmZDEyM2IzNjA1MmFlZWQ0OTRlNTgxMCJ9.Si0vQudk9B5N3UYKPp8QyGRqiXTPRiGspeRmtw9EY5qX09kCLseKOYSD_T2CE9n35N899wWks-BMW50dKNcOWnW90f4BFVCIMo_nSZYo949KEqIRxxl-psfkLMcSk_D22-bv6RU1TeVoqb22k8G2mQaPkdBpf2OPUAT2xSHo_Xu6iMGP-ZzHYE3ZT2mfGxvu2T4aYNqQpFIjFJrhA1NsXB1Wn0ubDw1SPJ4_a1VQzrhVhA9EStosfsOB0xCuyBGE3NUXSDWctyvBL5bK_gqpoaSVApyyPzEaFKr9BbmuiKk9pPGCatdRS1rVE8IqJZUI-Ank8qjC5IEtTq5VRNvZtA";
console.log("Generated ID Token:", idToken);
await web3auth.connect({
verifier: "dashboard verifier", // Exact name from Web3Auth dashboard
verifierId: "parvinder@suffescom.co", // User's actual email
idToken,
});
const result = shouldSupportPasskey();
if (!result.isBrowserSupported) {
console.log("Browser not supported");
} else {
// Register a new passkey
await passkeysPlugin.registerPasskey({ username: "Parvinder Kumar" });
// Login with a passkey
await passkeysPlugin.loginWithPasskey();
// List all registered passkeys
const passkeys = await passkeysPlugin.listAllPasskeys();
console.log(passkeys);
}
const clientId = “”;
const chainConfig = {
chainId: “0xaa36a7”,
displayName: “Ethereum Sepolia Testnet”,
chainNamespace: CHAIN_NAMESPACES.EIP155,
tickerName: “Ethereum”,
ticker: “ETH”,
decimals: 18,
rpcTarget: “https://rpc.ankr.com/eth_sepolia”,
blockExplorerUrl: “https://sepolia.etherscan.io”,
logo: “https://cryptologos.cc/logos/polygon-matic-logo.png”,
};