Skip to main content

Weibo Social Login with Web3Auth


Weibo login can be performed in various ways, depending on the use case. We have demonstrated this with Auth0, but this can be done with any other Federated/JWT providers.

Set up Weibo via Auth0

  1. Create a verifier for your Auth0 application by selecting Auth0 as the Login provider from this modal. Weibo - Login Providers list on Web3Auth Dashboard

  2. Select the Weibo as the Authentication Type based on the dropdown. Weibo - Auth0 Authentication Type list on Web3Auth Dashboard

  3. Enter the Auth0 Client ID and Auth0 Domain from your Auth0 application. See how to create a new Auth0 application here.

    Weibo - Domain and Client ID from Auth0 Dashboard Weibo - Auth0 Client ID and Auth0 Domain on Web3Auth Dashboard

  4. Add the Weibo Social Connection to your Auth0 application.

  5. Click on the Create button to create Weibo Custom Authentication via Auth0 verifier.


import { Web3AuthNoModal } from "@web3auth/no-modal";
import { OpenloginAdapter } from "@web3auth/openlogin-adapter";
import { EthereumPrivateKeyProvider } from "@web3auth/ethereum-provider";

const clientId =
// get it from by creating a project.

const chainConfig = {
chainNamespace: "eip155",
chainId: "0x1",
rpcTarget: "",
displayName: "Ethereum Mainnet",
blockExplorerUrl: "",
ticker: "ETH",
tickerName: "Ethereum",
logo: "",

const privateKeyProvider = new EthereumPrivateKeyProvider({
config: { chainConfig },

const web3auth = new Web3AuthNoModal({
web3AuthNetwork: "sapphire_mainnet",
privateKeyProvider: privateKeyProvider,

const openloginAdapter = new OpenloginAdapter({
adapterSettings: {
uxMode: "redirect",
loginConfig: {
jwt: {
verifier: "w3a-auth0-jp-demo", // Pass the Verifier name here
typeOfLogin: "jwt", // Pass on the login provider of the verifier you've created
clientId: "N9jnKM2Fo8PFRj8rYM9I7rWX1FW6X5xx", // Pass on the Auth0 `Client ID` here


// Initialize
await web3auth.init();

// Login with Weibo
await web3auth.connectTo(WALLET_ADAPTERS.OPENLOGIN, {
loginProvider: "jwt",
extraLoginOptions: {
domain: "", // Pass on the Auth0 `Domain` here
verifierIdField: "sub", // Pass on the field name of the `sub` field in the JWT
connection: "weibo", // Use this to skip Auth0 Modal for Weibo login