@krypton-org/krypton-auth
Version:
Express authentication middleware, using GraphQL and JSON Web Tokens.
18 lines (17 loc) • 422 B
TypeScript
import { Router } from 'express';
import { Properties } from './config';
declare global {
namespace Express {
interface Request {
user: any;
}
}
}
declare const _default: (properties?: Properties) => Router;
/**
* Return Krypton Authentication, an Express Router.
* @param {Properties} properties GraphQL Auth Service config
* @returns {Router}
* @api public
*/
export = _default;