face-guardian
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

Face Guardian Package

NPM version Build npm-typescript License

Live Demo

Installation:

npm install face-guardian --save-dev

or

yarn add -D face-guardian

Usage :

Add FaceLogin to your component:

import React from 'react';
import ReactDOM from 'react-dom';
import { FaceLogin, useUserData } from 'face-guardian';

const App = () => {
  const userData = useUserData();

  return (
    <React.StrictMode>
      <FaceLogin
        appId="your-app-id"
        buttonStyles={{ background: 'red', fontSize: '20px' }}
        buttonText="Custom Button Text"
      />
      {userData && <div>Welcome, {userData.name}!</div>}
    </React.StrictMode>
  );
};

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
root.render(<App />);

Contributing

We welcome contributions to the Face Guardian package! Please refer to our Contributing Guidelines for detailed information on how you can contribute.

Support

If you're having trouble with the package, please open an issue on the GitHub repository. We'll do our best to help you out.

License

The Face Guardian package is open source software licensed as MIT.

Dependencies (0)

    Dev Dependencies (18)

    Package Sidebar

    Install

    npm i face-guardian

    Weekly Downloads

    1

    Version

    1.2.2

    License

    MIT

    Unpacked Size

    20.4 kB

    Total Files

    21

    Last publish

    Collaborators

    • cyrusdavidp