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

21 lines (20 loc) 475 B
export interface OIDCHarvardKeyProfile { sub: string; name: string; locale?: string; family_name: string; given_name: string; middle_name?: string; preferred_username?: string; zoneinfo?: string; updated_at: number; email: string; email_verified: boolean; groups?: string[]; [key: string]: unknown; } export interface OIDCHarvardKeyResponse { id: string; _json: OIDCHarvardKeyProfile; [key: string]: unknown; }