# hibb-login

> View, model and logic for logging in.

Latest version **1.3.1** (published 2015-06-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install hibb-login
pnpm add hibb-login
yarn add hibb-login
bun add hibb-login
```

## Health

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

Positive: no vulnerabilities.

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

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.1 |
| Published | 2015-06-01 |
| First published | 2015-05-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| Author | gijsjan.brouwer@huygens.knaw.nl |
| Maintainers | gijsjan |

## Links

- npm: https://www.npmjs.com/package/hibb-login
- npm.io page: https://npm.io/package/hibb-login

## Dependencies (9)

- [btoa](https://npm.io/package/btoa.md) ^1.1.2
- [chai](https://npm.io/package/chai.md) ^1.10.0
- [tape](https://npm.io/package/tape.md) ^3.0.3
- [mocha](https://npm.io/package/mocha.md) ^2.0.1
- [jquery](https://npm.io/package/jquery.md) ^2.1.1
- [backbone](https://npm.io/package/backbone.md) ^1.1.2
- [hibb-modal](https://npm.io/package/hibb-modal.md) ^1.0.4
- [underscore](https://npm.io/package/underscore.md) ^1.7.0
- [funcky.util](https://npm.io/package/funcky.util.md) git+https://github.com/Gijsjan/funcky.util.git

## Recent versions

- 1.3.1 (latest) — 2015-06-01
- 1.2.1 — 2015-05-26
- 1.2.0 — 2015-05-26

## README

# Huygens ING Backbone Login

View, model and logic for logging in.

## Initialize

```coffeescript
# Require the module.
LoginComponent = require 'hibb-login'

# Init the component with the type of logins you need.
LoginComponent.init
	basic:
		url: "http://some-url-for-basic-authentication"
	federated:
		url: "http://some-url-for-federated-authentication"

# Create the user.
LoginComponent.createUser
	tokenPrefix: "some-prefix"
	url: -> "http://some-url-to-get-user-data"
	headers:
		KEY: "value"
```

## Other methods

```coffeescript
# Get the user.
LoginComponent.getUser()

# Get the token.
LoginComponent.getUser().getToken()

# Get the login view.
LoginComponent.getLoginView
	title: "Login"
	modal: true
```

## Changelog

### v1.3.1
* :sparkles: Add token type to prefix token

### v1.2.1
* Add dist dir to git

### v1.2.0
* :sparkles: Add button to request access to federated login

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