From 0b3955d1dadd18959e04c3e044cec3990ee72575 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sun, 19 Mar 2023 22:10:37 +0100 Subject: [PATCH] Add missing `validateRedirectUri()` to AuthorizationCodeModel --- index.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.d.ts b/index.d.ts index 3d780b3..777bda8 100644 --- a/index.d.ts +++ b/index.d.ts @@ -322,6 +322,12 @@ declare namespace OAuth2Server { * */ validateScope?(user: User, client: Client, scope: string | string[], callback?: Callback): Promise; + + /** + * Invoked to check if the provided `redirectUri` is valid for a particular `client`. + * + */ + validateRedirectUri?(redirect_uri: string, client: Client): Promise; } interface PasswordModel extends BaseModel, RequestAuthenticationModel {