feat: Microsoft authentication (#1953)

closes #755
This commit is contained in:
Tom Moor
2021-04-17 13:22:18 -07:00
committed by GitHub
parent b2d703bee4
commit 7a8ccdb229
8 changed files with 263 additions and 34 deletions

View File

@ -82,6 +82,12 @@ export function EmailAuthenticationRequiredError(
return httpErrors(400, message, { redirectUrl, id: "email_auth_required" });
}
export function MicrosoftGraphError(
message: string = "Microsoft Graph API did not return required fields"
) {
return httpErrors(400, message, { id: "graph_error" });
}
export function GoogleWorkspaceRequiredError(
message: string = "Google Workspace is required to authenticate"
) {