It was normally working as expected and returning wallet provider and signer. But suddenly give error and signer could be created.
url: diplomade preview
Platform: web
Project Name: diplomade-test
Verifier Name: diplomade-root-dev
sampleEmail:irfankemal16@gmail.com
idtoken: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImlyZmFua2VtYWwxNkBnbWFpbC5jb20iLCJwdWJsaWNBZGRyZXNzIjoiMHg4ODFmNzdmRWFFNUZCOWVkODlFNUVmYUZCNmZkNjNkNjIzMDcyZDRCIiwidmFsaWQiOnRydWUsImVtYWlsSE1BQ0ZvckludGVyY29tIjoiNzBlZmU2NzM2MWFiNThjOTc2YTJjMGI1NTMwYzhmNjFkMDUyZTZiMmE4MTJjNDc2N2RiZjE4NjAzY2Q0ODBlNSIsImlhdCI6MTczMzMyMjIwNiwiZXhwIjoxNzMzMzI1ODA2LCJhdWQiOiJodHRwczovL2FwcC5kaXBsb21hZGUuY29tIiwiaXNzIjoiaHR0cHM6Ly9hcGkuZGlwbG9tYWRlLmNvbSIsInN1YiI6ImlyZmFua2VtYWwxNkBnbWFpbC5jb20ifQ.VC_6yvTcDTHG8QnWOdgaiG9xHcGN1WQ1I8de4NNnjSbBpGdzqeNKRp8IDb7ZudcxamGBjj69OLwmwyvgOn1MMQjF0I6fjx7gZumOvSetcqWlnVssE0nNVP66bCqYnJCIVipj3E7PFBjWcMg2D3dTvgIluj1_nY95OT_Ijd4zRt9YVGaEptiw3dAVjx0AngvImlvmkeJC5qapUhQFhhBfXFVGa1qUh-YkZlmo7OoDf3FTtEpaNwLeVl2YlBrlE_YVXkTzvCgCInAWecmq1zxKlZPgtzi-eHU9RufuIjN7NWT1Y6HRyZxcPDezwZXXEOhhWcsOO31_jrAQyC_WTM1Fcg
But “No verifiers found” says when i visit the dashboard.
packages:
"react": "^18.2.0",
"@tkey/default": "^7.3.0",
"@tkey/security-questions": "^7.2.0",
"@tkey/web-storage": "^7.2.0",
"@web3auth/base": "^5.1.0",
"@web3auth/ethereum-provider": "^4.3.0",
"@web3auth/single-factor-auth": "^4.3.0",
Configuration and Instantiation of tKey:
import ThresholdKey from '@tkey/default';
import WebStorageModule from '@tkey/web-storage';
// Configuration of Service Provider
const customAuthArgs = {
baseUrl: `${window.location.origin}/serviceworker`,
network: 'cyan'
};
// Configuration of Modules
const webStorageModule = new WebStorageModule();
// Instantiation of tKey
export const tKey = new ThresholdKey({
modules: {
webStorage: webStorageModule
},
customAuthArgs: customAuthArgs as any
});
init:
const init = async () => {
// Initialization of Service Provider
try {
await (tKey.serviceProvider as any).init();
setIsInitialized(true);
checkLogin();
} catch (error) {
console.error(error);
}
};
init();
usage:
const customSubVerifierDetails = {
typeOfLogin: 'jwt',
verifier: ENV.WEB3AUTH_SUB_VERIFIER_SELF,
clientId: clientId,
jwtParams: {
id_token: idToken,
verifierIdField: 'email'
}
};
const registerResponse = await (
tKey.serviceProvider as any
).triggerAggregateLogin({
aggregateVerifierType: 'single_id_verifier',
verifierIdentifier: ENV.WEB3AUTH_VERIFIER,
subVerifierDetailsArray: [customSubVerifierDetails]
});