Example #1
0
    beforeEach(() => {
      relier = new Relier();
      client = new FxaClientWrapper({
        authServerUrl: config.auth_server_base_url,
        relier: relier
      });
      sinon.spy(client, 'certificateSign');
      assertionLibrary = new Assertion({
        fxaClient: client
      });
      email = ' ' + TestHelpers.createEmail() + ' ';

      return client.signUp(email, PASSWORD, relier, {
        preVerified: true
      }).then(function (result) {
        sessionToken = result.sessionToken;
      });
    });
    beforeEach(function () {
      ISSUER = config.authServerUrl;

      relier = new Relier();
      client = new FxaClientWrapper({
        authServerUrl: config.authServerUrl,
        relier: relier
      });
      assertionLibrary = new Assertion({
        fxaClient: client
      });
      email = ' ' + TestHelpers.createEmail() + ' ';

      return client.signUp(email, password, relier, {
        preVerified: true
      })
        .then(function (result) {
          sessionToken = result.sessionToken;
        });
    });