@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
17 lines (16 loc) • 402 B
TypeScript
import { HarvardEduPerson } from './harvardEduPerson';
export type SuccessResponse = {
authenticationSuccess: {
user: string;
attributes: HarvardEduPerson;
};
};
export type FailureResponse = {
authenticationFailure: {
code: string;
description: string;
};
};
export type HarvardKeyResponse = {
serviceResponse: SuccessResponse | FailureResponse;
};