When I try to login via Slack, its showing “Invalid client_id parameter” error
- SDK Version: latest
- Platform: windows
- Browser Console Screenshots:
- If the issue is related to Custom Authentication, please include the following information (optional):
- Verifier Name: zzyy-custom-app
Here is code
useEffect(() => {
const init = async () => {
try {
const chainConfig = {
chainNamespace: CHAIN_NAMESPACES.EIP155,
chainId: "0x5", // Please use 0x1 for Mainnet
rpcTarget: "https://rpc.ankr.com/polygon",
displayName: "Polygon Devnet",
blockExplorer: "https://polygonscan.com",
ticker: "MATIC",
tickerName: "Matic",
};
const web3auth = new Web3AuthNoModal({
clientId,
chainConfig,
web3AuthNetwork: "sapphire_devnet",
useCoreKitKey: false,
});
const privateKeyProvider = new EthereumPrivateKeyProvider({ config: { chainConfig } });
const openloginAdapter = new OpenloginAdapter({
privateKeyProvider,
adapterSettings: {
uxMode: "redirect",
loginConfig: {
jwt: {
verifier: "zzyy-custom-app",
typeOfLogin: "jwt",
clientId: "wQFftcjqnzIl17ycJrkV0NEsz1gHmwgK",
},
},
},
});
web3auth.configureAdapter(openloginAdapter);
setWeb3auth(web3auth);
await web3auth.init();
setProvider(web3auth.provider);
if (web3auth.connected) {
setLoggedIn(true);
}
} catch (error) {
console.error(error);
}
};
init();
}, []);
const login = async () => {
if (!web3auth) {
uiConsole("web3auth not initialized yet");
return;
}
const web3authProvider = await web3auth.connectTo(
WALLET_ADAPTERS.OPENLOGIN,
{
loginProvider: "jwt",
extraLoginOptions: {
domain: "https://dev-3p18fvnwadfbjijg.us.auth0.com",
verifierIdField: "sub",
connection: "sign-in-with-slack",
// connection: "sign-in-with-slack", // Use this to skip Auth0 Modal for Google login.
},
}
);
setProvider(web3authProvider);
// const web3 = new Web3(web3authProvider);
};