Skip to content

Commit 3e3a747

Browse files
author
Danny Diekroeger
committed
fixed key response
1 parent 67910d1 commit 3e3a747

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

app/krs.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,5 +186,14 @@ exports.provisionKey = co(function *(req) {
186186
yield notifyEndpoint(key, 'created');
187187
}
188188

189-
return key;
189+
const response = {
190+
masterKey: masterKey.pub,
191+
path: key.path,
192+
userEmail: key.userEmail,
193+
custom: key.custom,
194+
masterKeySig: masterKey.signature,
195+
pub: key.pub
196+
}
197+
198+
return response;
190199
});

0 commit comments

Comments
 (0)