Use ES6 Class syntax with extends instead of utils.inherits
|
util.inherits(AuthorizationCodeGrantType, AbstractGrantType); |
|
util.inherits(ClientCredentialsGrantType, AbstractGrantType); |
|
util.inherits(PasswordGrantType, AbstractGrantType); |
|
util.inherits(RefreshTokenGrantType, AbstractGrantType); |
This also occurs in all the errors at lib/errors
Use ES6
Classsyntax withextendsinstead ofutils.inheritsnode-oauth2-server/lib/grant-types/authorization-code-grant-type.js
Line 47 in 485147f
node-oauth2-server/lib/grant-types/client-credentials-grant-type.js
Line 40 in 485147f
node-oauth2-server/lib/grant-types/password-grant-type.js
Line 42 in 485147f
node-oauth2-server/lib/grant-types/refresh-token-grant-type.js
Line 47 in 485147f
This also occurs in all the errors at
lib/errors