Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
Built fxa-js-client from commit 8880bbc on branch master
Browse files Browse the repository at this point in the history
  • Loading branch information
zaach committed Dec 9, 2014
1 parent cc9b7c6 commit 22ee8b3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
12 changes: 10 additions & 2 deletions fxa-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2015,7 +2015,15 @@ define('client/FxAccountClient',[
}
}

return self.request.send(endpoint, 'POST', null, data, requestOpts);
return self.request.send(endpoint, 'POST', null, data, requestOpts)
.then(
function(accountData) {
if (options && options.keys) {
accountData.unwrapBKey = sjcl.codec.hex.fromBits(result.unwrapBKey);
}
return accountData;
}
);
}
);
};
Expand Down Expand Up @@ -2495,7 +2503,7 @@ define('client/FxAccountClient',[
* @method certificateSign
* @param {String} sessionToken User session token
* @param {Object} publicKey The key to sign
* @param {int} duration Time interval from now when the certificate will expire in seconds
* @param {int} duration Time interval from now when the certificate will expire in milliseconds
* @return {Promise} A promise that will be fulfilled with JSON `xhr.responseText` of the request
*/
FxAccountClient.prototype.certificateSign = function(sessionToken, publicKey, duration) {
Expand Down
Loading

0 comments on commit 22ee8b3

Please sign in to comment.