An open API service indexing awesome lists of open source software.

https://github.com/r17x/react-auth

🚧 Unpublished/Undistributed - Still Work in Progress
https://github.com/r17x/react-auth

client javascript jwt nodejs server

Last synced: 9 months ago
JSON representation

🚧 Unpublished/Undistributed - Still Work in Progress

Awesome Lists containing this project

README

          

# Feature
* JWT Support

# Usage

## Install

### Yarn
```console
yarn add react-auths
```

### NPM
```console
npm install --save react-auths
```

### Register `Provider`
```javascript
// file: index.js
import { AuthProvider } from 'react-auths'

export default function EntryPoint(){
return (


...

)
}
```

### Consume `Auth` states or actions
```javascript
import { useAuth } from 'react-auths'

const Login = () => {
const { signIn } = useAuth()
const token = 'accessToken'

return (



signIn(token) } />

)
}
```
# API