Skip to content

Commit e16170d

Browse files
committed
Fix Cliente Credentials Refresh Token
1 parent f480e4b commit e16170d

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

lib/grant-types/client-credentials-grant-type.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,15 @@ ClientCredentialsGrantType.prototype.saveToken = function(/*user, */client, scop
9292
var fns = [
9393
this.validateScope(null, client, scope),
9494
this.generateAccessToken(client, null, scope),
95-
this.generateRefreshToken(client, null, scope),
9695
this.getAccessTokenExpiresAt(client, null, scope),
97-
this.getRefreshTokenExpiresAt()
9896
];
9997

10098
return Promise.all(fns)
10199
.bind(this)
102-
.spread(function(scope, accessToken, refreshToken, accessTokenExpiresAt, refreshTokenExpiresAt) {
100+
.spread(function(scope, accessToken, accessTokenExpiresAt) {
103101
var token = {
104102
accessToken: accessToken,
105103
accessTokenExpiresAt: accessTokenExpiresAt,
106-
refreshToken: refreshToken,
107-
refreshTokenExpiresAt: refreshTokenExpiresAt,
108104
scope: scope
109105
};
110106

0 commit comments

Comments
 (0)