1.0.2 • Published 2 years ago

bomser-login v1.0.2

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

React Bomser Login

A Bomser oAUth Sign-in / Log-in Component for React

Install

npm install bomser-login

How to use

import React from 'react';
import ReactDOM from 'react-dom';
import BomserLogin from 'bomser-login';
// or
import { BomserLogin } from 'bomser-login';

const responseBomser = (response) => {
  console.log(response);
};

ReactDOM.render(
  <BomserLogin onSuccess={responseBomser} onFailure={responseBomser} />,
  document.getElementById('BomserButton')
);

onSuccess callback

property namevalue
keystring
idstring
indexnumber
imageUrlstring
firstnamestring
lasttnamestring

onFailure callback

onFailure callback is called when either initialization or a signin attempt fails.

property namevaluedefinition
detailsstringDetailed error description