Case Study

Flexible authentication for leading B2B restaurant logistics platform FoodMarketHub with SuperTokens

April 18th 2023    •    10 minute read
Logistics
Customers

KFC, Pizza Hut and Din Tai Fung

Funding raised

$13M

Time to implement

2-3 Days

Order Value '21-'22

$600M

growing 400% YoY
Expand Toggle
About
FoodMarketHub is an enterprise B2B marketplace that helps restaurants manage their inventory by connecting them with suppliers. They have a large presence in Southeast Asia, including Singapore, Malaysia, Thailand, Vietnam, Indonesia and the Philippines. Their customers include some of the world’s largest food chains (e.g. KFC) with thousands of outlets and tens of thousands of service staff that use the platform every day.

Yogesh, who manages FoodMarketHub’s backend team and has over 10 years of software development experience, was responsible for FoodMarketHub’s authentication infrastructure.

Overview

1 Problem
Yogesh and his team faced challenges with Auth0, when configuring the authentication UI. Manually uploading code to the Auth0 dashboard was time-consuming.
2 Process
SuperTokens seamlessly integrated with their codebase, eliminating restrictions on customization. They also synchronized SuperTokens user tables with their own database.
3 Results
With SuperTokens, FoodMarketHub transitioned from evaluation to full production in just 2-3 days with custom logic within their code base. SuperTokens’ passwordless setup catered to the mobile-heavy Southeast Asian SEA market.

Before SuperTokens

When Yogesh and his team first implemented their authentication using Auth0, they found it slow when trying to configure the authentication UI. And with their API implemented in Hasura, adding user metadata and role management into their tokens meant using Auth0’s pre and post hooks. This process also required uploading code manually into the Auth0 dashboard - certainly possible but cumbersome.

While many auth features were already built in their native codebase, FoodMarketHub still wanted a trusted 3rd party to avoid rolling an entire auth implementation from scratch. After searching for a new solution, they found SuperTokens - which had the customization necessary for a smooth UI and token metadata, with the added ability to play well with their role management logic.

Implementation

Using SuperTokens, Yogesh was able to move from evaluation to full production in 2-3 days. Before, the FoodMarketHub team had to manually upload code to Auth0.

Now, all their custom logic integrates with SuperTokens natively within their codebase, without any restrictions on number and types of customization. SuperTokens also allowed them to sync SuperTokens user tables with their own database for more flexibility.
Yogesh opted for a passwordless setup out of the box from SuperTokens to cater to the mobile-heavy SEA market.
To watch entire case study discussion video please click here.
Share this article
LinkedIn Icon Twitter Icon