From 4a8d113b9b57d97ff13ad1608798eabca99643e4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 28 Apr 2020 14:49:03 +0200 Subject: Begin support for external auths --- server/typings/express.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/typings/express.ts') diff --git a/server/typings/express.ts b/server/typings/express.ts index e6e120403..5973496f1 100644 --- a/server/typings/express.ts +++ b/server/typings/express.ts @@ -29,6 +29,7 @@ import { MPlugin, MServer } from '@server/typings/models/server' import { MServerBlocklist } from './models/server/server-blocklist' import { MOAuthTokenUser } from '@server/typings/models/oauth/oauth-token' import { UserRole } from '@shared/models' +import { RegisterServerAuthExternalOptions } from '@shared/models/plugins/register-server-auth.model' declare module 'express' { interface Response { @@ -115,6 +116,8 @@ declare module 'express' { registeredPlugin?: RegisteredPlugin + externalAuth?: RegisterServerAuthExternalOptions + plugin?: MPlugin } } -- cgit v1.2.3