# @celercore/auth

> Celer Core Payments is a library with auth.

Latest version **1.1.2** (published 2022-05-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @celercore/auth
pnpm add @celercore/auth
yarn add @celercore/auth
bun add @celercore/auth
```

## 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.2 |
| Published | 2022-05-29 |
| First published | 2022-05-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.3 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | hasanoes |

## Links

- npm: https://www.npmjs.com/package/@celercore/auth
- Repository: https://github.com/Celer-Org/auth
- Homepage: https://github.com/Celer-Org/auth#readme
- Issues: https://github.com/Celer-Org/auth/issues
- npm.io page: https://npm.io/package/@celercore/auth

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.27.2

## Recent versions

- 1.1.2 (latest) — 2022-05-29
- 1.1.1 — 2022-05-22
- 1.1.0 — 2022-05-22
- 1.0.11 — 2022-05-22
- 1.0.10 — 2022-05-22
- 1.0.9 — 2022-05-22
- 1.0.8 — 2022-05-22
- 1.0.7 — 2022-05-22
- 1.0.6 — 2022-05-22
- 1.0.5 — 2022-05-22
- 1.0.4 — 2022-05-22
- 1.0.3 — 2022-05-22
- 1.0.2 — 2022-05-22
- 1.0.1 — 2022-05-22
- 1.0.0 — 2022-05-22

## README

# CelerCore Auth

Celer Core Payments is a library with auth.

## Installation

Use the package manager [npm](https://npmjs.com/) to install celercore/auth.

```bash
npm i @celercore/auth
```

## Usage

```javascript
const { Discord } = require('@celercore/auth')
const express = require('express')

const discordAuth = new Discord({
    clientId: 'CLIENT_ID',
    clientSecret: 'CLIENT_SECRET',
    redirect: 'REDIRECT_URI',
    scope: ['identify']
})

const app = express()

app.get('/login', (req, res) => {
    res.redirect(discordAuth.getUrl())
})

app.get('/callback', async (req, res) => {
    res.send(await discordAuth.getToken(req.query.code))
})

app.listen(3000, () => console.log('Listening...'))
```

## Auth providers
- [x] Discord
- [x] Github
- [ ] Spotify
- [ ] Google
- [ ] MetaMask
- [ ] Steam

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License
[MIT](https://choosealicense.com/licenses/mit/)

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