Skip to content
This repository was archived by the owner on Dec 12, 2018. It is now read-only.

Commit 0186969

Browse files
author
Timothy E. Johansson
committed
Merge pull request #330 from stormpath/fix-refresh-token-auth-error-handling
Fix: Remove refresh_token option validation in refresh grant authenticator
2 parents 460999e + 43f477f commit 0186969

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/oauth/refresh-grant.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ OAuthRefreshTokenGrantAuthenticator.prototype.authenticate = function authentica
2727
var application = this.application;
2828
if(arguments.length !==2 ){
2929
throw new Error('Must call authenticate with (data,callback)');
30-
}else if (!data.refresh_token){
31-
throw new Error('data does not have refresh_token property');
3230
}else{
3331
var href = application.href + '/oauth/token';
3432
var formData = {

0 commit comments

Comments
 (0)