# mise-react-redux-auth0

> Auth module that will be used across the internal apps - MISE

Latest version **1.1.7** (published 2020-03-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install mise-react-redux-auth0
pnpm add mise-react-redux-auth0
yarn add mise-react-redux-auth0
bun add mise-react-redux-auth0
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.7 |
| Published | 2020-03-16 |
| First published | 2019-11-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 150.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Nenad Radovanovic |
| Maintainers | marknadsinformation |
| Keywords | auth, auth0 |

## Links

- npm: https://www.npmjs.com/package/mise-react-redux-auth0
- Repository: https://marknadsinformation.visualstudio.com/Utveckling/_git/mise-react-redux-auth0
- npm.io page: https://npm.io/package/mise-react-redux-auth0

## Dependencies (5)

- [react](https://npm.io/package/react.md) ^16.8.6
- [webpack](https://npm.io/package/webpack.md) ^4.29.6
- [auth0-js](https://npm.io/package/auth0-js.md) ^9.10.1
- [jwt-decode](https://npm.io/package/jwt-decode.md) ^2.2.0
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 1.1.7 (latest) — 2020-03-16
- 1.1.6 — 2020-03-16
- 1.1.5 — 2020-01-14
- 1.1.4 — 2019-12-02
- 1.1.3 — 2019-11-27
- 1.1.2 — 2019-11-27
- 1.1.1 — 2019-11-27

## README

# mise-react-redux-auth0

NPM module for Auth0 services

---

Auth module will be used across various applications, providing the same API for Auth0 authentication services.

### Usage

```javascript
import AuthConstructor from "mise-react-redux-auth0";

const Auth0 = new AuthConstructor(config);

/* ... */
```

### API 

- **AuthConstructor {object}**: Default export of an Auth constructor. Takes a `config` object. More info in the next section
- **authReducer {function}**: Named export of a predefined auth redux reducer
- **callbackReducer {function}**: Named export of a predefined callback redux reducer
- **getAuthActions {function}**: Named export of a function that takes an Auth instance, and returns redux action creators
- **Callback {Component}**: Named export of a React Component used to handle authentication routing
- **SecuredRoute {Component}**: Named export of a React Component that secures regular, non-authenticated routes

### AuthConstructor Config API 

- **domain {REQUIRED, string}**: Your Auth0 account domain
- **clientID {REQUIRED, string}**: The Client ID found on your Application settings page
- **redirectUri {OPTIONAL, string}**: The URL where Auth0 will call back to with the result of a successful or failed authentication. It must be whitelisted in the "Allowed Callback URLs" in your Auth0 Application settings
- **scope {OPTIONAL, string}**: The default scope used for all authorization requests
- **audience {OPTIONAL, string}**: The default audience, used if requesting access to an API
- **responseType {OPTIONAL, string}**: Response type for all authentication requests. It can be any space separated list of the values `code`, `token`, `id_token`. If you don't provide global `responseType`, you will have to provide a  `responseType` for each method that you use
- **responseMode {OPTIONAL, string}**: The default responseMode used, defauts to `'fragment'`. The `parseHash` method can be used to parse authentication responses using fragment response mode. Supported values are `query`, `fragment`, and `form_post`. The `query` value is only supported when `responseType` is `code`.
- **__disableDeprecationWarnings {OPTIONAL, boolean}**: Indicates if deprecation warnings should be output to the browser console, defaults to `false`

### Instance API

- In progress...

### Download & Installation

_Make sure you have .npmrc setup so you can pull packages from Azure DevOps registry._

```shell
npm i mise-react-redux-auth0
```

or

```shell
yarn add mise-react-redux-auth0
```

---
_Source: https://npm.io/package/mise-react-redux-auth0 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
