2.0.0 • Published 9 months ago
simple-authentication-react v2.0.0
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
2.0.0
9 months ago
1.0.26
1 year ago
1.0.25
1 year ago
1.0.24
1 year ago
1.0.23
1 year ago
1.0.28
1 year ago
1.0.27
1 year ago
1.0.22
3 years ago
1.0.19
4 years ago
1.0.18
4 years ago
1.0.17
4 years ago
1.0.21
4 years ago
1.0.20
4 years ago
1.0.16
4 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.11
4 years ago
1.0.10
4 years ago
1.0.12
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.2
4 years ago
1.0.3
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago