# useauthrocket

> an authentication system for your reactjs applications

Latest version **1.0.8** (published 2021-10-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install useauthrocket
pnpm add useauthrocket
yarn add useauthrocket
bun add useauthrocket
```

## 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.8 |
| Published | 2021-10-19 |
| First published | 2021-10-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 2 |
| Unpacked size | 10.3 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ugwu Stanley ugwuchiagoziestanley@gmail.com |
| Maintainers | ugwustanley |
| Keywords | authentication, useauthrocket, firebase, database, storage, create, login, signup, register, realtime |

## Links

- npm: https://www.npmjs.com/package/useauthrocket
- Repository: https://github.com/ugwustanley/authrocket-npm
- Issues: https://github.com/ugwustanley/authrocket-npm/issues
- npm.io page: https://npm.io/package/useauthrocket

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.21.1
- [dotenv](https://npm.io/package/dotenv.md) ^10.0.0

## 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.0.8 (latest) — 2021-10-19
- 1.0.7 — 2021-10-18
- 1.0.6 — 2021-10-18
- 1.0.5 — 2021-10-18
- 1.0.4 — 2021-10-17
- 1.0.3 — 2021-10-17
- 1.0.2 — 2021-10-16
- 1.0.1 — 2021-10-16
- 1.0.0 — 2021-10-16

## README

# authrocket

## Installation

```bash
npm install useauthrocket
```

## Usage

```js
 import Authrocket from 'useauthrocket'
    
 const app = Authrocket.initializeApp({
           apiKey: <your api key>,
           appName: <your app name>
    })
```

Visit [authrocket website](https://authrocket.netlify.app/application) to generate an api key. appName is the name of your application and can be anything

### Available methods

* createAccount
    - `accepts`: 
        - email (string)
        - password (string)
        - payload (object)(optional)
    - `returns`: object
 ```js
 const user = app.createAccount(<email>, <password>, <payload>)
```   
* login
    - `accepts`: 
        - email (string)
        - password (string)
    - `returns`: object
 ```js
 const user = app.login(<email>, <password>)
```  
* getUser
    - `accepts`: 
        - uuid (string)
    - `returns`: object
 ```js
 const user = app.getUser(<uuid>)
```
 
* isEmailVerified
    - `accepts`:
        - uuid (string)
    - `returns`: boolean
 ```js
 const isEmailVerified = app.isEmailVerified(<uuid>)
```          
* isUserLoggedIn
    - `accepts`:
        - uuid (string)
    - `returns`: boolean
 ```js
 const isUserSignedIn = app.isUserSignedIn(<uuid>)
```  
 
* signout
```js
 app.signout()
```

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