shlogg · Early preview
Ramu Narasinga @karthik-m22

Supabase Authentication Mechanism Revealed

Supabase uses its own library for authentication, specifically @supabase/auth-js, in conjunction with its monorepo's common package.

In this article, we analyse the authentication mechanism Supabase uses. You may have used Supabase Auth, but have you ever wondered what Supabase uses for its authentication? well, let’s find out.


  
  
  signin.tsx

We have to start at Signin page, this can be found in studio workspace. Supabase is a monorepo and contains workspaces in apps folder.
and packages.
Let’s pick SignInForm as it has email and password based authentication. At line 51,, you will find the below component:

import SignInForm from 'components/interfaces/SignIn/SignInForm'
…
<SignInForm />...