Confirmed users
483
edits
| Line 23: | Line 23: | ||
=== Code example === | === Code example === | ||
<code> | <code> | ||
function | function _verifyAssertion(aAssertion) { | ||
// Make use of the [https://wiki.mozilla.org/Identity/Firefox_Accounts#Verifier remote verification API] | // Make use of the [https://wiki.mozilla.org/Identity/Firefox_Accounts#Verifier remote verification API] | ||
// and return the verified msisdn. | // and return the verified msisdn. | ||
| Line 33: | Line 33: | ||
.then( | .then( | ||
(assertion) => { | (assertion) => { | ||
_verifyAssertion(assertion) | |||
// Do stuff with the msisdn. | .then( | ||
(msisdn) => { | |||
// Do stuff with the msisdn. | |||
} | |||
); | |||
}, | }, | ||
(error) { | (error) { | ||