Archived Content from Web3Auth Community
This topic was originally posted by githubdiscussions on 10/25/2022.
This content has been migrated from our previous community forum to preserve valuable discussions.
Hey guys, i'm trying to implement the custom auth using JWT token. I've successfully deployed the verified in the dashboard but i get some weird errors. Here is a snippet of my code. Any clues on whats going wrong ?
`
verifierIdField: "sub",
response_type: "token",
scope:"",
}
});">
const web3authCore = new Web3AuthCore({
chainConfig: {
chainNamespace: CHAIN_NAMESPACES.EIP155,
chainId: “0x38”,
rpcTarget: “https://bsc-dataseed1.binance.org”,
blockExplorer: “https://bscscan.com/”,
ticker: “BNB”,
tickerName: “Binance Smart Chain”,
},
clientId: “”
});const adapter = new OpenloginAdapter({ adapterSettings: {
network: “testnet”,
clientId: “”,
uxMode: “popup”,
loginConfig: {
jwt: {
name: “any name”,
verifier: “wam-testnet”,
typeOfLogin: “jwt”,
clientId: “”,
},
},
}});web3authCore.configureAdapter(adapter);
await web3authCore.init();
const provider = await web3authCore.connectTo(adapter.name, {
loginProvider: “jwt”,
extraLoginOptions: {
id_token: “”,
domain: “http://localhost:8080”,
verifierIdField: “sub”,
response_type: “token”,
scope:“”,
}
});
Originally posted by: 0xboga
Check the discussion at: https://github.com/orgs/Web3Auth/discussions/771

