@@ -148,7 +148,7 @@ declare namespace OAuth2Server {
148
148
* Validate requested scope. Calls Model#validateScope() if implemented.
149
149
*
150
150
*/
151
- validateScope ( user : User , client : Client , scope : string [ ] ) : Promise < string [ ] | Falsey > ;
151
+ validateScope ( user : User , client : Client , scope ? : string [ ] ) : Promise < string [ ] | Falsey > ;
152
152
153
153
/**
154
154
* Retrieve info from the request and client and return token
@@ -314,7 +314,7 @@ declare namespace OAuth2Server {
314
314
* Invoked to check if the requested scope is valid for a particular client/user combination.
315
315
*
316
316
*/
317
- validateScope ?( user : User , client : Client , scope : string [ ] ) : Promise < string [ ] | Falsey > ;
317
+ validateScope ?( user : User , client : Client , scope ? : string [ ] ) : Promise < string [ ] | Falsey > ;
318
318
319
319
/**
320
320
* Invoked to check if the provided `redirectUri` is valid for a particular `client`.
@@ -340,7 +340,7 @@ declare namespace OAuth2Server {
340
340
* Invoked to check if the requested scope is valid for a particular client/user combination.
341
341
*
342
342
*/
343
- validateScope ?( user : User , client : Client , scope : string [ ] ) : Promise < string [ ] | Falsey > ;
343
+ validateScope ?( user : User , client : Client , scope ? : string [ ] ) : Promise < string [ ] | Falsey > ;
344
344
}
345
345
346
346
interface RefreshTokenModel extends BaseModel , RequestAuthenticationModel {
@@ -374,7 +374,7 @@ declare namespace OAuth2Server {
374
374
* Invoked to check if the requested scope is valid for a particular client/user combination.
375
375
*
376
376
*/
377
- validateScope ?( user : User , client : Client , scope : string [ ] ) : Promise < string [ ] | Falsey > ;
377
+ validateScope ?( user : User , client : Client , scope ? : string [ ] ) : Promise < string [ ] | Falsey > ;
378
378
}
379
379
380
380
interface ExtensionModel extends BaseModel , RequestAuthenticationModel { }
0 commit comments