Skip to content

knocus/knocjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CAUTION: We have decided to drop this project and hence won't be maintained.

Knoc

A bell like plugin for authentication with Hapi.js, with the freedom of custom handler logic. Supports -[x] Facebook

Installation

npm install knoc --save
yarn add knoc

Usage

// facebook oauth
import {fb, FacebookConfig} from 'knoc';
import config '/path/to/my/config';

const fbHandler = async (req, h) => {
  const token = request.payload.token;
  // Pass in the config
  const fbConfig:FacebookConfig = config.facebook;
  return data = await fb.validate(token, fbConfig);
}

About

Authentication toolkit for Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published