We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b0459e + 1718df3 commit e29410bCopy full SHA for e29410b
index.d.ts
@@ -277,9 +277,10 @@ declare namespace OAuth2Server {
277
278
/**
279
* 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.
281
*
282
*/
- verifyScope(token: Token, scope: string | string[], callback?: Callback<boolean>): Promise<boolean>;
283
+ verifyScope?(token: Token, scope: string | string[], callback?: Callback<boolean>): Promise<boolean>;
284
}
285
286
interface AuthorizationCodeModel extends BaseModel, RequestAuthenticationModel {
0 commit comments