[[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 =