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.1 to 1.2.2

4

lib/token.js

@@ -178,3 +178,3 @@ // Modules

if (typeof refreshToken === 'object' && refreshToken.refresh_token) {
req.oauth.accessToken.refresh_token = refreshToken.refresh_token;
req.oauth.accessToken.refresh_token = { refresh_token: refreshToken.refresh_token };
return token.issueToken.call(oauth, req, res, next);

@@ -210,3 +210,3 @@ }

if (typeof accessToken === 'object' && accessToken.access_token) {
req.oauth.accessToken = accessToken.access_token;
req.oauth.accessToken = { access_token: accessToken.access_token };
return issueRefreshToken();

@@ -213,0 +213,0 @@ }

{
"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.1",
"version": "1.2.2",
"keywords": [

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

@@ -367,3 +367,3 @@ /**

.send(validBody)
.expect(/thommy/, 200, done);
.expect(/"access_token": "thommy"/, 200, done);

@@ -370,0 +370,0 @@ });

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