Skip to content

Commit

Permalink
Merge branch 'master' of github.com:aiyan/safeplaces-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
aiyan committed Jul 10, 2020
2 parents 3d4e183 + 7c427b5 commit 7bb84b2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ jobs:
node-version: 12.x
- run: npm ci
- run: npm run coverage
- name: Coveralls
uses: coverallsapp/github-action@v1.1.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
5 changes: 0 additions & 5 deletions .travis.yml

This file was deleted.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SafePlaces Authentication Service

[![Build Status](https://travis-ci.com/aiyan/safeplaces-auth.svg?branch=master)](https://travis-ci.com/aiyan/safeplaces-auth)
[![Coverage Status](https://coveralls.io/repos/github/aiyan/safeplaces-auth/badge.svg?branch=master)](https://coveralls.io/github/aiyan/safeplaces-auth?branch=master)
[![Build Status](https://github.com/Path-Check/safeplaces-auth/workflows/Node.js%20CI/badge.svg)](https://github.com/Path-Check/safeplaces-auth/actions?query=workflow%3A%22Node.js+CI%22)
[![Coverage Status](https://coveralls.io/repos/github/Path-Check/safeplaces-auth/badge.svg?branch=master)](https://coveralls.io/github/Path-Check/safeplaces-auth?branch=master)

The modular authentication service for the SafePlaces backend.

Expand Down Expand Up @@ -34,7 +34,7 @@ the service relative to other middleware affects the point at which
it is invoked.

```javascript
const auth = require('@aiyan/safeplaces-auth');
const auth = require('@pathcheck/safeplaces-auth');

// Instantiate a public key retrieval client.
const pkClient = new auth.JWKSClient(
Expand Down Expand Up @@ -156,7 +156,7 @@ Validate the JSON Web Token by checking the signature with
the retrieved public key, and validate the API audience.

```javascript
const auth = require('@aiyan/safeplaces-auth');
const auth = require('@pathcheck/safeplaces-auth');

const pkClient = new auth.JWKSClient(
`${process.env.AUTH0_BASE_URL}/.well-known/jwks.json`,
Expand All @@ -173,7 +173,7 @@ Validate the JSON Web Token by checking the signature with
a fixed private key.

```javascript
const auth = require('@aiyan/safeplaces-auth');
const auth = require('@pathcheck/safeplaces-auth');

const symJWTStrategy = new auth.strategies.SymJWT({
algorithm: 'HS256',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lint": "eslint",
"format": "prettier --write \"**/*.{js,json}\"",
"test": "jest",
"coverage": "jest --coverage && coveralls < coverage/lcov.info"
"coverage": "jest --coverage"
},
"files": [
"src/**/*"
Expand Down

0 comments on commit 7bb84b2

Please sign in to comment.