We have updated our Privacy Policy as of September 22, 2023, for more information click here

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;

Cazoo @ Split

Cazoo’s mission is to transform the car buying and selling experience across the UK. Their aim is to make buying or selling a car no different to ordering any other product online. Cazoo buys used cars and fully reconditions them before offering them for sale on its website.

About Cazoo

Cazoo’s mission is to transform the car buying and selling experience across the UK. Their aim is to make buying or selling a car no different to ordering any other product online. Cazoo buys used cars and fully reconditions them before offering them for sale on its website.

USE CASES

Feature Experimentation, Feature Flags, Feature Management

Contact us to learn how Cazoo uses Split to improve their business

On Cazoo’s website, customers can browse through thousands of cars in-stock at any time, choose and purchase one online, and have it delivered to their door in as little as 72 hours. The digital car dealer Cazoo is transforming the way people buy used cars by making purchases simple and seamless. The microservices-based approach allows Cazoo to develop sales sites and channels in a way that is unique in the automotive industry.

World-class software development teams at enterprises like Cazoo use Split to deliver impactful products that move the needle for their business. Engineering teams at Cazoo trust Split to drive their development and deliver features that improve business outcomes.

Get Split Certified

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

Deliver software features that matter, fast

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. Switch on a free account today or schedule a demo to learn more.

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.