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 @@ -74,8 +74,7 @@ function extractCredentials (done) {
74
74
// Grant type
75
75
this . grantType = this . req . body && this . req . body . grant_type ;
76
76
if ( ! this . grantType ) {
77
- return done ( error ( 'invalid_request' ,
78
- 'Invalid or missing grant_type parameter' ) ) ;
77
+ return done ( error ( 'invalid_request' , 'Missing grant_type parameter' ) ) ;
79
78
} else if ( ! this . grantType . match ( this . config . regex . grantType ) ) {
80
79
return done ( error ( 'unsupported_grant_type' , 'Unsupported grant type' ) ) ;
81
80
}
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ describe('Grant', function() {
73
73
request ( app )
74
74
. post ( '/oauth/token' )
75
75
. set ( 'Content-Type' , 'application/x-www-form-urlencoded' )
76
- . 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 ) ;
76
+ . 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 ) ;
77
77
} ) ;
78
78
79
79
it ( 'should ensure grant_type is allowed' , function ( done ) {
You can’t perform that action at this time.
0 commit comments