Skip to content

Commit 68d01ad

Browse files
Marked verifyScope function as optional in model types.
1 parent 4494564 commit 68d01ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ declare namespace OAuth2Server {
279279
* Invoked during request authentication to check if the provided access token was authorized the requested scopes.
280280
*
281281
*/
282-
verifyScope(token: Token, scope: string | string[], callback?: Callback<boolean>): Promise<boolean>;
282+
verifyScope?(token: Token, scope: string | string[], callback?: Callback<boolean>): Promise<boolean>;
283283
}
284284

285285
interface AuthorizationCodeModel extends BaseModel, RequestAuthenticationModel {

0 commit comments

Comments
 (0)