From 721fe74f3cf7c7a8529897aebbdf5d1b0157a1d1 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Tue, 7 Jun 2016 14:47:47 +0200 Subject: [PATCH] The route creates the subobject --- src/clients.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clients.js b/src/clients.js index a3bab484a..ab84b8558 100644 --- a/src/clients.js +++ b/src/clients.js @@ -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 - }}); + }); }); }); }