Changes

Jump to: navigation, search

WebAPI/MobileIdentity

568 bytes added, 16:35, 11 July 2014
Code example
[[File:MobileIdFxosDialog.gif|480px|thumb|center|Mobile Identity Firefox OS dialog]]
=== Code example ===
<code>
function verifyAssertion(aAssertion) {
// Make use of the [https://wiki.mozilla.org/Identity/Firefox_Accounts#Verifier remote verification API]
// and return the verified msisdn.
}
// Request a mobile identity assertion and force the chrome UI to
// allow the user to change a possible previous selection.
navigator.getMobileIdAssertion({ forceSelection: true })
.then(
(assertion) => {
var msisdn = verifyAssertion(assertion);
// Do stuff with the msisdn.
},
(error) {
// Process error.
};
);
</code>
= Implementation details =
Confirm
483
edits

Navigation menu