react-auth-verification-context
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "react-auth-verification-context", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "react-auth-verification-context is a library that provides a way to manage authentication state in a React application. It is implemented using the React context API, which allows you to pass data through the component tree without having to pass props down manually at every level.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -7,5 +7,5 @@ <p align="center"> | ||
`react-auth-context` is a library that provides a way to manage authentication state in a React application. It is implemented using the React context API, which allows you to pass data through the component tree without having to pass props down manually at every level. | ||
`react-auth-verification-context` is a library that provides a way to manage authentication state in a React application. It is implemented using the React context API, which allows you to pass data through the component tree without having to pass props down manually at every level. | ||
To use `react-auth-context`, you will need to wrap your root component with an AuthProvider component, which provides the authentication state and methods for updating it as props to its children. You can then use the useAuth hook to access the authentication state and methods from within any descendant component. | ||
To use `react-auth-verification-context`, you will need to wrap your root component with an AuthProvider component, which provides the authentication state and methods for updating it as props to its children. You can then use the useAuth hook to access the authentication state and methods from within any descendant component. | ||
@@ -15,4 +15,3 @@ ## Features | ||
- Works in **React** and **React Native** | ||
- `createTheming(defaultTheme)` - factory returns: | ||
- `AuthProvider` - component | ||
- `AuthProvider` - Provider component | ||
- `useAuth` - React Hook | ||
@@ -30,3 +29,3 @@ - `login` | ||
```sh | ||
yarn add react-auth-context | ||
yarn add react-auth-verification-context | ||
``` | ||
@@ -37,3 +36,3 @@ | ||
```sh | ||
npm install react-auth-context --save | ||
npm install react-auth-verification-context --save | ||
``` | ||
@@ -44,3 +43,3 @@ | ||
```javascript | ||
import { AuthProvider, useAuth } from "react-auth-context"; | ||
import { AuthProvider, useAuth } from "react-auth-verification-context"; | ||
@@ -47,0 +46,0 @@ function App() { |
89186
84