wrs-hov
v0.0.3
Published
Reusable auth form made by mehira
Downloads
4
Readme
Installation
npm i @mehira/web-react-sdk
How to use
- Import the Mehira provider and AuthComponent
import { AuthComponent, MehiraProvider } from '@mehira/web-react-sdk'
- Add them anywhere to your code provide your apiUrl, publicKey, and auth as shown below
<MehiraProvider.Provider
value={{
apiUrl: "test",
auth: {
enableGithubAuth: true,
enableGoogleAuth: true,
enableSlackAuth: true
},
publicKey:"test",
}}
>
<AuthComponent />
</MehiraProvider.Provider>