Big News! Split is now part of Harness. Learn more at Harness and read why we are excited by this move.

const jwt = require("jsonwebtoken");

const config = process.env;

const verifyToken = (req, res, next) => {
  const token =
    req.body.token || req.query.token || req.headers["x-access-token"];

  if (!token) {
    return res.status(403).send("A token is required for authentication");
  }

  try {
    req.user = jwt.verify(token, config.TOKEN_KEY);
  } catch (err) {
    return res.status(401).send("Invalid Token");
  }

  return next();
};

module.exports = verifyToken;

Combat a Global Pandemic with Agile Development and Continuous Delivery

Healthfirst is New York’s largest not-for-profit health insurer, offering high-quality, affordable plans to fit every life stage. With a mission to reduce health disparities across its member communities, the company takes great care to provide a world-class member experience and ensure easy access to healthcare.

About Healthfirst

Healthfirst is New York's largest not-for-profit health insurer, offering high-quality, affordable plans to fit every life stage. With a mission to reduce health disparities across its member communities, the company takes great care to provide a world-class member experience and... Read more

USE CASES

Feature Flags, Feature Management

Accelerate Mobile-First Initiatives To Provide Virtual Healthcare and Support to Members

Healthfirst’s product and engineering teams had been developing new capabilities for their mobile app. They expedited the original launch time frame of July 2020 to April in response to COVID-19. With Split, the team consolidated their agile deployment strategies and 2x the delivery speed from every six weeks to every three weeks. This agile approach also allowed them to quickly pivot their focus onto features that would help members combat the impact of the pandemic.

“Leveraging Split with our existing tool stack, we’ve been able to consolidate our agile deployment strategies to deliver every three weeks from an original 1.5 months.”

Julian Gutierrez Ferrara, Senior Software Engineering Manager

For fast and easy access to Healthfirst’s contact center, the team knew members would need a live agent chat to request help. To minimize exposure and keep people out of hospitals, the team knew members would need 24/7 access to telemedicine for doctors to virtually assess whether their condition required an in-person appointment or a trip to the emergency room. For those severely impacted by the pandemic and now struggling with food and housing insecurity, the team wanted to integrate the mobile app with NowPow, an online directory of over 5,000 organizations offering 20,000 services in New York City and surrounding areas.

Deliver Fast, Reliable Experiences to Members in Need With Feature Flags and Measurement

With Split, Healthfirst engineers built live agent chat, telemedicine sessions, and the NowPow integration into their mobile app, deploying code to production behind feature flags to keep new features dormant until ready for release. Using Split targeting and data hub, the team gradually released new features to sample populations and monitored feature flag data in live tail to ensure target users were accessing the new features. Through Split’s Segment integration, customer event data flowed directly into Split and was joined with impression data via the platform’s data attribution logic to automatically calculate the impact of each feature on the in-app experience.

With Healthfirst’s contact center staff newly trained on serving members via chat, the team needed to ensure members were receiving help promptly and that support teams weren’t overwhelmed by the volume of chat interactions. To determine whether the new features should be extended to more users, the team closely tracked three metrics within Split: wait times for chat, system performance errors, and customer satisfaction. These metrics guided each phase of the rollout as more and more members were exposed to the new features.

Using Split to rapidly deploy and safely release new features and accurately monitor their impact on the user experience, the Healthfirst team successfully launched their new mobile app features three months earlier than initially planned. By the end of 2020, more than 36,000 members* had accessed the NowPow directory via Healthfirst’s mobile app for food and housing services.

Split allowed us to bring new features to our members faster and with less risk. We were able to focus on building new features within our mobile app to support our members through the COVID-19 pandemic, instead of draining resources building an internal feature delivery solution.

Julian Gutierrez Ferrara

*Source:  https://healthfirst.org/newsroom/healthfirst-to-address-food-insecurity-through-holiday-donations

Switch It On With Split

The Split Feature Data Platform™ gives you the confidence to move fast without breaking things. Set up feature flags and safely deploy to production, controlling who sees which features and when. Connect every flag to contextual data, so you can know if your features are making things better or worse and act without hesitation. Effortlessly conduct feature experiments like A/B tests without slowing down. Whether you’re looking to increase your releases, to decrease your MTTR, or to ignite your dev team without burning them out–Split is both a feature management platform and partnership to revolutionize the way the work gets done. Schedule a demo to learn more.

Get Split Certified

Split Arcade includes product explainer videos, clickable product tutorials, manipulatable code examples, and interactive challenges.

Want to Dive Deeper?

We have a lot to explore that can help you understand feature flags. Learn more about benefits, use cases, and real world applications that you can try.

Create Impact With Everything You Build

We’re excited to accompany you on your journey as you build faster, release safer, and launch impactful products.