From 05ee48235aea72e759f12b206ce5727131dcbced Mon Sep 17 00:00:00 2001 From: Daniel Varnai Date: Sat, 18 Apr 2020 00:17:07 +0200 Subject: [PATCH] [oauth2orize] Add req.oauth2 to express request (#43840) * Add req.oauth2 to express request * Removed blank line Co-authored-by: Daniel Varnai --- types/oauth2orize/index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/types/oauth2orize/index.d.ts b/types/oauth2orize/index.d.ts index 38165ae290..ea593fa203 100644 --- a/types/oauth2orize/index.d.ts +++ b/types/oauth2orize/index.d.ts @@ -9,6 +9,14 @@ import { IncomingMessage, ServerResponse } from "http"; +declare global { + namespace Express { + interface Request { + oauth2?: OAuth2; + } + } +} + export interface OAuth2 { client: any; user: any;