0.1.9 • Published 5 years ago

@enslogin/login-with-ethereum v0.1.9

Weekly downloads
22
License
-
Repository
github
Last release
5 years ago

ENS Login - Login With Ethereum Button

The Login With Ethereum Button is an ENS Login solution the that integrate all wallets in a single react component

Installation

yarn add @enslogin/login-with-ethereum

Setting up on your Dapp

import LoginWithEthereum from '@enslogin/login-with-ethereum'
const config = {
	provider:
	{
		network: 'goerli',
	},
	ipfs:{
		host: 'ipfs.infura.io',
		port: 5001,
		protocol: 'https',
	}
}

<LoginWithEthereum config={config} ...options/>

Options

  • config: (mandatory) ENSLogin config file (see @enslogin/sdk)

  • connect: (function, default=null) Function that will be called when upon successfull connection. The provider is passed as an argument.

  • disconnect: (function, default=null) Function that will be called when upon disconnection.

  • noCache: (boolean, defaut=false) Bypass the cache, will ask the user to reconnect everytime recommanded to leave untouched, for debuging only

  • noInjected: (boolean, defaut=false) By default LoginWithEthereum looks for an injected web3 provider before using ENSLogin. Setting this options will skip that step and move directly to ENSLogin.

-- customSection (optional) If you pass component, you can override the section where it has the list of provider icons

0.1.8

5 years ago

0.1.7

5 years ago

0.1.9

5 years ago

0.1.4

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.0

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.3

6 years ago

0.1.0-alpha.0

6 years ago

0.0.12

6 years ago

0.0.13

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago