oauth2orize
Advanced tools
Comparing version 1.8.0 to 1.8.1
@@ -87,2 +87,6 @@ /** | ||
if (scope) { | ||
if (typeof scope !== 'string') { | ||
return next(new TokenError('Invalid parameter: scope must be a string', 'invalid_request')); | ||
} | ||
for (var i = 0, len = separators.length; i < len; i++) { | ||
@@ -89,0 +93,0 @@ var separated = scope.split(separators[i]); |
@@ -93,2 +93,6 @@ /** | ||
if (scope) { | ||
if (typeof scope !== 'string') { | ||
return next(new TokenError('Invalid parameter: scope must be a string', 'invalid_request')); | ||
} | ||
for (var i = 0, len = separators.length; i < len; i++) { | ||
@@ -95,0 +99,0 @@ var separated = scope.split(separators[i]); |
@@ -88,2 +88,6 @@ /** | ||
if (scope) { | ||
if (typeof scope !== 'string') { | ||
return next(new TokenError('Invalid parameter: scope must be a string', 'invalid_request')); | ||
} | ||
for (var i = 0, len = separators.length; i < len; i++) { | ||
@@ -90,0 +94,0 @@ var separated = scope.split(separators[i]); |
{ | ||
"name": "oauth2orize", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"description": "OAuth 2.0 authorization server toolkit for Node.js.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
# OAuth2orize | ||
[![Build](https://travis-ci.org/jaredhanson/oauth2orize.svg?branch=master)](https://travis-ci.org/jaredhanson/oauth2orize) | ||
[![Coverage](https://coveralls.io/repos/jaredhanson/oauth2orize/badge.svg?branch=master)](https://coveralls.io/r/jaredhanson/oauth2orize) | ||
[![Quality](https://codeclimate.com/github/jaredhanson/oauth2orize/badges/gpa.svg)](https://codeclimate.com/github/jaredhanson/oauth2orize) | ||
[![Dependencies](https://david-dm.org/jaredhanson/oauth2orize.svg)](https://david-dm.org/jaredhanson/oauth2orize) | ||
[![Tips](https://img.shields.io/gratipay/jaredhanson.svg)](https://gratipay.com/jaredhanson/) | ||
[![Build](https://img.shields.io/travis/jaredhanson/oauth2orize.svg)](https://travis-ci.org/jaredhanson/oauth2orize) | ||
[![Coverage](https://img.shields.io/coveralls/jaredhanson/oauth2orize.svg)](https://coveralls.io/r/jaredhanson/oauth2orize) | ||
[![Quality](https://img.shields.io/codeclimate/github/jaredhanson/oauth2orize.svg?label=quality)](https://codeclimate.com/github/jaredhanson/oauth2orize) | ||
[![Dependencies](https://img.shields.io/david/jaredhanson/oauth2orize.svg)](https://david-dm.org/jaredhanson/oauth2orize) | ||
OAuth2orize is an authorization server toolkit for Node.js. It provides a suite | ||
@@ -94,3 +92,3 @@ of middleware that, combined with [Passport](http://passportjs.org/) | ||
if (!client) { return done(null, false); } | ||
if (!client.redirectUri != redirectURI) { return done(null, false); } | ||
if (client.redirectUri != redirectURI) { return done(null, false); } | ||
return done(null, client, client.redirectURI); | ||
@@ -97,0 +95,0 @@ }); |
94015
2297
204