react-auth-verification-context
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "react-auth-verification-context", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"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.", | ||
@@ -26,3 +26,3 @@ "keywords": [ | ||
"build": "tsc", | ||
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"", | ||
"format": "prettier --write \"src/**/*.ts\"", | ||
"lint": "tslint -p tsconfig.json", | ||
@@ -29,0 +29,0 @@ "prepare": "npm run build", |
@@ -5,2 +5,17 @@ <p align="center"> | ||
--- | ||
<div style='display: flex'> | ||
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/abgaryanharutyun/react-auth-verification-context/tree/master.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/abgaryanharutyun/react-auth-verification-context/tree/master) | ||
<div style="width: 10px"></div> | ||
[![codecov](https://codecov.io/gh/abgaryanharutyun/react-auth-verification-context/branch/master/graph/badge.svg?token=YSQ2HFT892)](https://codecov.io/gh/abgaryanharutyun/react-auth-verification-context) | ||
<div style="width: 10px"></div> | ||
[![License: ISC](https://img.shields.io/badge/License-ISC-blue.svg)](https://opensource.org/licenses/ISC) | ||
</div> | ||
## About | ||
@@ -40,3 +55,3 @@ | ||
```javascript | ||
import { AuthProvider, useAuth } from "react-auth-verification-context"; | ||
import { AuthProvider, useAuth } from 'react-auth-verification-context'; | ||
@@ -62,3 +77,3 @@ function App() { | ||
} catch (e) { | ||
console.log("error", e); | ||
console.log('error', e); | ||
} | ||
@@ -77,5 +92,3 @@ restoreToken(userAttributes); | ||
) : ( | ||
<button onClick={() => login({ name: "John Smit", id: "123" })}> | ||
Login | ||
</button> | ||
<button onClick={() => login({ name: 'John Smit', id: '123' })}>Login</button> | ||
)} | ||
@@ -82,0 +95,0 @@ </div> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11831
97