@nopasswordlogin/react-passwordless

0.1.1 • Public • Published

react-nopasswordlogin

Enable your users to login using biometrics (TouchID, FaceID, Windows Hello) or hardware security tokens (Yubikey). Create an account at https://nopasswordlogin.com

Install and Usage

$ yarn add @nopasswordlogin/react-passwordless

# or

$ npm install @nopasswordlogin/react-passwordless

Registration

This component renders a button which makes a call to the No Password Login platform to register a user. When the component is clicked it will ask the user to register an authenticator such as TouchID.

Example Usage

import { Registration } from '@nopasswordlogin/react-passwordless';

<Registration clientId="demo" identifier="myusername" />

Authentication

This component renders a button which makes a call to the No Password Login platform to authenticate (login) a user. The user will be challenge with the authenticator that they registered with (For Example. TouchID or FaceID)

Example Usage

import { Authentication } from '@nopasswordlogin/react-passwordless';

<Authentication clientId="demo" identifier="myusername" />
Property Type Required
clientId string
identifier string
name string
onSuccess function
onFailure function
render node

Get Started

  1. Signup for an account at https://dashboard.nopasswordlogin.com
  2. Create a new application which will generate a Client ID
  3. Drop the Registration and Authentication component somewhere in your authentication flow
  4. Your users can now register and login with biometrics

Contributing

All PR's are welcome.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Readme

Keywords

none

Package Sidebar

Install

npm i @nopasswordlogin/react-passwordless

Weekly Downloads

2

Version

0.1.1

License

none

Unpacked Size

19.6 kB

Total Files

4

Last publish

Collaborators

  • cmccaw