0.1.9 • Published 4 years ago

@enslogin/login-with-ethereum v0.1.9

Weekly downloads
22
License
-
Repository
github
Last release
4 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

4 years ago

0.1.7

4 years ago

0.1.9

4 years ago

0.1.4

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.3

4 years ago

0.1.0-alpha.0

4 years ago

0.0.12

4 years ago

0.0.13

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago