File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,7 @@ function extractCredentials (done) {
73
73
// Grant type
74
74
this . grantType = this . req . body && this . req . body . grant_type ;
75
75
if ( ! this . grantType ) {
76
- return done ( error ( 'invalid_request' ,
77
- 'Invalid or missing grant_type parameter' ) ) ;
76
+ return done ( error ( 'invalid_request' , 'Missing grant_type parameter' ) ) ;
78
77
} else if ( ! this . grantType . match ( this . config . regex . grantType ) ) {
79
78
return done ( error ( 'unsupported_grant_type' , 'Unsupported grant type' ) ) ;
80
79
}
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ describe('Grant', function() {
72
72
request ( app )
73
73
. post ( '/oauth/token' )
74
74
. set ( 'Content-Type' , 'application/x-www-form-urlencoded' )
75
- . expect ( 400 , / i n v a l i d o r m i s s i n g g r a n t _ t y p e p a r a m e t e r / i, done ) ;
75
+ . expect ( 400 , / m i s s i n g g r a n t _ t y p e p a r a m e t e r / i, done ) ;
76
76
} ) ;
77
77
78
78
it ( 'should ensure grant_type is allowed' , function ( done ) {
You can’t perform that action at this time.
0 commit comments