The function navigator.id.genKeyPair(function(pubkey) {...}) currently calls back with an object. We would like to propose that this function should call back with a json string instead.
There are two compelling reasons for doing this:
1. It makes it easier to marshal data with native, non-JS code (e.g., a native browser implementation)
2. It is consistent with the rest of the IdP API, in which we work with strings, not objects.
This change would affect all IdPs.
This would not affect the RP API.
Thoughts? Objections?
(Tracking the issue here:
https://github.com/mozilla/browserid/issues/1678)
Cheers,
Jed