# express-user-authentication

> A package you can use to create a user system with authentications

Latest version **1.0.0** (published 2022-09-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install express-user-authentication
pnpm add express-user-authentication
yarn add express-user-authentication
bun add express-user-authentication
```

## 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.0.0 |
| Published | 2022-09-11 |
| First published | 2022-09-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dinoscape |
| Maintainers | dinoscape |
| Keywords | express, user, authentication |

## Links

- npm: https://www.npmjs.com/package/express-user-authentication
- Repository: https://github.com/DinoscapeProgramming/Authentication-Package
- Homepage: https://github.com/DinoscapeProgramming/Authentication-Package#readme
- Issues: https://github.com/DinoscapeProgramming/Authentication-Package/issues
- npm.io page: https://npm.io/package/express-user-authentication

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@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

## Recent versions

- 1.0.0 (latest) — 2022-09-11

## README

# Authentication Package
A package you can use to create a user system with authentications

## Documentation
### Setup
```js
const expressAuthentication = require('express-user-authentication');
```

### Create User
```js
expressAuthentication.createUser({
  username: "Dinoscape",
  password: "MyPassword",
  data: {
    type: "User"
  }
});
```

### Edit User
```js
expressAuthentication.editUser({
  username: "Dinoscape",
  password: "MyPassword",
  options: {
    username: "DinoRunner",
    password: "SecurePassword",
    data: {
      type: "Admin"
    }
  }
});
```

### Delete User
```js
expressAuthentication.deleteUser({
  username: "DinoRunner",
  password: "SecurePassword"
});
```

### Authentication
```js
app.on("/admin", expressAuthentication({
  data: {
    type: "Admin"
  }
}), (req, res) => {
  res.send("You are an admin!");
})
```

---
_Source: https://npm.io/package/express-user-authentication · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
