node-oauth2-server
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -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 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54872