UNPKG

@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

10 lines (9 loc) 394 B
import { Strategy } from 'passport-custom'; import { Request } from 'express'; import { User } from './types/User'; declare const TestingStrategy_base: new (...args: any[]) => Strategy; export declare class TestingStrategy<UserType extends User = User> extends TestingStrategy_base { validate(request: Request): Promise<UserType | null>; login(): Promise<UserType | null>; } export {};