Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-oauth2-server

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-oauth2-server - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

9

lib/token.js

@@ -120,2 +120,5 @@ // Modules

return this.model.extendedGrant(req, function (err, supported, user) {
if (err && err.error && err.description) {
return next(new OAuth2Error(err.error, err.description));
}
if (err) return next(err);

@@ -260,6 +263,6 @@ if (!supported) return invalid();

if (this.model.generateToken) {
this.model.generateToken(type, req, function (err, token) {
this.model.generateToken(type, req, function (err, generatedToken) {
if (err) return callback(new OAuth2Error('server_error'));
if (!token) return token._generateToken(callback);
callback(false, token);
if (!generatedToken) return token._generateToken(callback);
callback(false, generatedToken);
});

@@ -266,0 +269,0 @@ } else {

{
"name": "node-oauth2-server",
"description": "Complete, compliant and well tested module for implementing an OAuth2 Server/Provider with express in node.js",
"version": "1.2.2",
"version": "1.2.3",
"keywords": [

@@ -6,0 +6,0 @@ "oauth",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc