function _notifyLoginStateChanged(aRpCallerId, aIdentity) {
    log("_notifyLoginStateChanged: rpId:", aRpCallerId, "identity:", aIdentity);

    let options = {rpId: aRpCallerId};
    Services.obs.notifyObservers({wrappedJSObject: options},
                                 "identity-login-state-changed",
                                 aIdentity);
  }
/**
   * For use with login or logout, emit 'identity-login-state-changed'
   *
   * The notification will send the rp caller id in the properties,
   * and the email of the user in the message.
   *
   * @param aRpCallerId
   *        (integer) The id of the RP caller
   *
   * @param aIdentity
   *        (string) The email of the user whose login state has changed
   */
For use with login or logout, emit 'identity-login-state-changed'
The notification will send the rp caller id in the properties,
and the email of the user in the message.

@param aRpCallerId
(integer) The id of the RP caller

@param aIdentity
(string) The email of the user whose login state has changed
For use with login or logout emit ' identity - login - state - changed ' The notification will send the rp caller id in the properties and the email of the user in the message . @param aRpCallerId ( integer ) The id of the RP caller @param aIdentity ( string ) The email of the user whose login state has changed
function _notifyLoginStateChanged(aRpCallerId, aIdentity) {
    log("_notifyLoginStateChanged: rpId:", aRpCallerId, "identity:", aIdentity);
    let options = {rpId: aRpCallerId};
    Services.obs.notifyObservers({wrappedJSObject: options},
                                 "identity-login-state-changed",
                                 aIdentity);
  }
function _notifyLoginStateChanged ( aRpCallerId , aIdentity ) { log ( "_notifyLoginStateChanged: rpId:" , aRpCallerId , "identity:" , aIdentity ) ; let options = { rpId : aRpCallerId } ; Services . obs . notifyObservers ( { wrappedJSObject : options } , "identity-login-state-changed" , aIdentity ) ; }
For use with login or logout, emit 'identity-login-state-changed'
 The notification will send the rp caller id in the properties,
 and the email of the user in the message.
For use with login or logout emit ' identity - login - state - changed ' The notification will send the rp caller id in the properties and the email of the user in the message .