# s5

> StudentRND s5 JavaScript Library

Latest version **1.1.3** (published 2015-07-16) · BSD-2-Clause license · 0 weekly downloads

## Install

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

## 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.3 |
| Published | 2015-07-16 |
| First published | 2015-02-21 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | TJ Horner |
| Maintainers | tjhorner |
| Keywords | studentrnd, sso, oauth |

## Links

- npm: https://www.npmjs.com/package/s5
- Repository: https://github.com/tjhorner/s5.js
- Homepage: https://github.com/tjhorner/s5.js#readme
- Issues: https://github.com/tjhorner/s5.js/issues
- npm.io page: https://npm.io/package/s5

## Dependencies (1)

- [unirest](https://npm.io/package/unirest.md) ^0.4.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.1.3 (latest) — 2015-07-16
- 1.1.2 — 2015-07-16
- 1.1.1 — 2015-07-16
- 1.1.0 — 2015-06-13
- 1.0.9 — 2015-06-13
- 1.0.8 — 2015-06-13
- 1.0.7 — 2015-06-12
- 1.0.6 — 2015-06-03
- 1.0.5 — 2015-02-27
- 1.0.4 — 2015-02-24
- 1.0.3 — 2015-02-24
- 1.0.2 — 2015-02-24
- 1.0.1 — 2015-02-23
- 1.0.0 — 2015-02-21
- 0.0.1 — 2015-02-21

## README

# s5.js

s5 is the StudentRND Service Single Sign-On System. Here's the node module to interact with it.

## Installation

```shell
npm install s5
```

## Examples

```javascript
var s5 = require('s5');

// Create an s5 instance with your API credentials
var sso = new s5("YOUR_API_KEY", "YOUR_API_SECRET");

// Get the OAuth URI with extended privileges
sso.getOAuthURI("http://example.com/oauth/s5", "extended");

// Exchange the provided code for an access token
sso.exchangeCode(code, callback);

// Get a user
sso.getUser("tjhorner", callback);

// Get user from access token
sso.me(accessToken, callback);
```

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