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

11 lines (10 loc) 513 B
import { OIDCHarvardKeyResponse } from './types/oidcHarvardKeyProfile'; import { User } from './types/User'; import { HarvardKeyModuleOptions } from './types/harvardKeyModuleOptions'; declare const HarvardKeyStrategy_base: new (...args: any[]) => import("passport-openidconnect"); export declare class HarvardKeyStrategy extends HarvardKeyStrategy_base { issuer: string; constructor(config: HarvardKeyModuleOptions); validate(_: string, { _json: profile }: OIDCHarvardKeyResponse): User; } export {};