oauth2orize
Advanced tools
Comparing version 1.5.1 to 1.6.0
var url = require('url') | ||
, qs = require('querystring'); | ||
, qs = require('querystring') | ||
, AuthorizationError = require('../errors/authorizationerror'); | ||
@@ -18,3 +19,3 @@ /** | ||
exports.validate = function(txn) { | ||
if (!txn.redirectURI) { throw new Error('Unable to issue redirect for OAuth 2.0 transaction'); } | ||
if (!txn.redirectURI) { throw new AuthorizationError('Unable to issue redirect for OAuth 2.0 transaction', 'invalid_request'); } | ||
}; |
@@ -1,2 +0,3 @@ | ||
var url = require('url'); | ||
var url = require('url') | ||
, AuthorizationError = require('../errors/authorizationerror'); | ||
@@ -19,3 +20,3 @@ /** | ||
exports.validate = function(txn) { | ||
if (!txn.redirectURI) { throw new Error('Unable to issue redirect for OAuth 2.0 transaction'); } | ||
if (!txn.redirectURI) { throw new AuthorizationError('Unable to issue redirect for OAuth 2.0 transaction', 'invalid_request'); } | ||
}; |
{ | ||
"name": "oauth2orize", | ||
"version": "1.5.1", | ||
"version": "1.6.0", | ||
"description": "OAuth 2.0 authorization server toolkit for Node.js.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
91374
2231