The route creates the subobject

This commit is contained in:
Johannes Zellner
2016-06-07 14:47:47 +02:00
parent 96eeb247a1
commit 721fe74f3c

View File

@@ -260,13 +260,13 @@ function addClientTokenByUserId(clientId, userId, callback) {
tokendb.add(token, userId, result.id, expiresAt, result.scope, function (error) {
if (error) return callback(new ClientsError(ClientsError.INTERNAL_ERROR, error));
callback(null, { token: {
callback(null, {
accessToken: token,
identifier: userId,
clientId: result.id,
scope: result.id,
expires: expiresAt
}});
});
});
});
}