@seas-computing/nestjs-harvard-key
Version:
This repository provides a way to connect NestJS applications to HarvardKey and provide a rudimentary form of authorization (in the form of route guards) out of the box
9 lines (8 loc) • 374 B
TypeScript
import { Request } from 'express';
import { Strategy } from 'passport-custom';
import { HarvardEduPerson } from './types/harvardEduPerson';
declare const HarvardKeyStrategy_base: new (...args: any[]) => Strategy;
declare class HarvardKeyStrategy extends HarvardKeyStrategy_base {
validate({ session }: Request): HarvardEduPerson | null;
}
export { HarvardKeyStrategy };