Social Login using Etherspot SDK
Demonstrate how social login work with Etherspot SDK
Before we continue, please ensure that you have had a look at Social Logins to better understand how it works and our Supported Ethereum Chains, followed the steps in Install Etherspot SDK and how to Bootstrap Etherspot SDK. We're assuming that you have completed these steps before going forward.
In this article, we would take a look at how we can implement social logins using our Etherspot SDK to make use of both, the power of social login by creating a wallet with your social account sign-in and the power of Etherspot SDK to make that wallet, an Account Abstracted smart wallet
First, let us create a wallet using Web3Auth for Social Login. For this, we have to sign-up in https://dashboard.web3auth.io/ for creating an account to create a web3Auth ClientId which is available after you are signed into the dashboard and created a project under 'Plug and Play'. Copy the ClientId shown and keep it ready before continuing.
Install Web3Auth package
NPM
YARN
npm install --save @web3auth/modal
yarn add @web3auth/modal
Initialising Web3Auth for Social Login using the above created web3Auth ClientId
import { Web3AuthCore } from '@web3auth/core'