1.0.9 • Published 2 years ago

passwordless-bb-ui v1.0.9

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Installation

passwordless bb UI has 3 module Login, Register and Approve

npm:

npm install passwordless-bb-ui

Steps

step 1: Create web application at passwordless.

step 2: Use Client ID & BASE URL and update Website URL if necessary.

step 3: Install latest version npm install passwordless-bb-ui.

step 4: import modules and with props name config.

import { Login, Register } from 'passwordless-bb-ui';

.
.
.

<Login
    config={
        clientId: '...',
        baseUrl: '...',
        onSuccess: f() ,
        onError: f()
    }
/>

...

<Register
    config={
        clientId: '...',
        baseUrl: '...',
        onSuccess: f() ,
        onError: f()
    }
/>

use Approve module with exact path and param

import { Approve } from 'passwordless-bb-ui';

.
.
.

   exact path="/approve/:accessToken" element={<Approve config={...} />}

Note

  • onSuccess and onError are function. Pass parameter and to get access of it.

Example

Sample app