1.0.28 • Published 15 days ago
simple-authentication-react v1.0.28
Simple authentication react
Table of contents
Installation
pip install simple-authentication-react
Dependencies
npm i react-hook-form
npm i yup
Usage
- Required for styles :root { --primary-color: #f01159; --secondary-color: #dff8fe; --third-color: #003458; --fourth-color: #82cde5; }
import { Login, SignUp } from "simple-authentication-react";
import { yupResolver } from "@hookform/resolvers/yup";
import * as yup from "yup";
<Login
setIsLoggedIn={setIsLoggedIn}
yup={yup}
yupResolver={yupResolver}
submitForm={submitForm}
schema={loginSchema}
fields={fields}
/>
Props
- setIsLoggedIn - to invert state from signin and signup
- yup - for validation
- yup - for passing validation schema
- submitForm - to call api or validation
- schema - yup schema depending on the field present in the form
- fields - fields that must be present in the form
1.0.26
15 days ago
1.0.25
15 days ago
1.0.24
15 days ago
1.0.23
16 days ago
1.0.28
15 days ago
1.0.27
15 days ago
1.0.22
2 years ago
1.0.19
2 years ago
1.0.18
2 years ago
1.0.17
2 years ago
1.0.21
2 years ago
1.0.20
2 years ago
1.0.16
3 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.12
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.2
3 years ago
1.0.3
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago