open-index/open-npm huggingface dataset:
npm package: @preelio/auth
Description: # Installing
Latest version: 1.0.6

# Preel Auth

# Installing

## 1. Configure .npmrc file

registry=https://{NEXUS_URL}  
always-auth=true  
//{NEXUS_URL}/:\_authToken={NEXUS_TOKEN}

## 2. Install package

```
npm i @preel/auth
```

# Usage

## 1. Import

```javascript
import {PreelAuth} from 'preel-auth'
```

## 2. Configuring

```javascript
const preelAuth = new PreelAuth({
  baseUrl: 'https://example.com/api',
  storage: storage, // Optional
})

// If storage is not provided will be used default Cookie storage
```

## 3. Example

```javascript
await preelAuth.registerNewUser(user)
```