WebAPI/MobileIdentity: Difference between revisions

Jump to navigation Jump to search
Line 23: Line 23:
=== Code example ===
=== Code example ===
<code>
<code>
   function verifyAssertion(aAssertion) {
   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) => {
       var msisdn = verifyAssertion(assertion);
       _verifyAssertion(assertion)
       // Do stuff with the msisdn.
       .then(
        (msisdn) => {
          // Do stuff with the msisdn.
        }
      );
     },
     },
     (error) {
     (error) {
Confirmed users
483

edits

Navigation menu