From 1e2180206471b6cef644c9af6b58fe405a2eb7f0 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Sun, 29 Jan 2023 21:30:42 -0500 Subject: Implement WebAuthn (#967) * implement webauthn * code review --------- Co-authored-by: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> --- src/api/Server.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/api/Server.ts') diff --git a/src/api/Server.ts b/src/api/Server.ts index 0177be40..01c60f23 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts @@ -19,7 +19,13 @@ import "missing-native-js-functions"; import { Server, ServerOptions } from "lambert-server"; import { Authentication, CORS } from "./middlewares/"; -import { Config, initDatabase, initEvent, Sentry } from "@fosscord/util"; +import { + Config, + initDatabase, + initEvent, + Sentry, + WebAuthn, +} from "@fosscord/util"; import { ErrorHandler } from "./middlewares/ErrorHandler"; import { BodyParser } from "./middlewares/BodyParser"; import { Router, Request, Response } from "express"; @@ -58,6 +64,7 @@ export class FosscordServer extends Server { await initEvent(); await initInstance(); await Sentry.init(this.app); + WebAuthn.init(); const logRequests = process.env["LOG_REQUESTS"] != undefined; if (logRequests) { -- cgit 1.5.1