Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e29410b

Browse files
types: marked verifyScope function as optional #209 fix #202
Merge pull request #209 from shrihari-prakash/verify-scope-fix thanks to @shrihari-prakash
2 parents 4b0459e + 1718df3 commit e29410b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎index.d.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,10 @@ declare namespace OAuth2Server {
277277

278278
/**
279279
* Invoked during request authentication to check if the provided access token was authorized the requested scopes.
280+
* Optional, if a custom authenticateHandler is used or if there is no scope part of the request.
280281
*
281282
*/
282-
verifyScope(token: Token, scope: string | string[], callback?: Callback<boolean>): Promise<boolean>;
283+
verifyScope?(token: Token, scope: string | string[], callback?: Callback<boolean>): Promise<boolean>;
283284
}
284285

285286
interface AuthorizationCodeModel extends BaseModel, RequestAuthenticationModel {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /