---
title: "Discussion on \"Using Supabase authentication in NestJs\" | Hashnode"
description: "Discussion on \"Using Supabase authentication in NestJs\". Not too long ago I decided to write my backend authentication code for an application I was building. Authentication in NestJs is less of a hassle as it uses the popular easy-to-use passport.js library, which is pretty solid when working with authent..."
url: "https://hashnode.com/posts/using-supabase-authentication-in-nestjs/64a934ccb92d54d884eb8292"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Using Supabase authentication in NestJs](https://iamstarcode.hashnode.dev/using-supabase-authentication-in-nestjs?utm_source=hashnode&utm_medium=feed)

Not too long ago I decided to write my backend authentication code for an application I was building. Authentication in NestJs is less of a hassle as it uses the popular easy-to-use passport.js library, which is pretty solid when working with authent...

Jul 8, 2023 · 7 min read · iamstarcode.hashnode.dev  
Updated Jul 10, 2023  
Read the article

-   [#authentication](https://hashnode.com/tag/authentication)
-   [#supabase](https://hashnode.com/tag/supabase)
-   [#nestjs](https://hashnode.com/tag/nestjs)
-   [#baas](https://hashnode.com/tag/baas)
-   [#cloudinary](https://hashnode.com/tag/cloudinary)

## Written by

[Abiola Bakare](https://hashnode.com/@iamstarcode)

@iamstarcode

  
[View profile](https://hashnode.com/@iamstarcode)

## Responses 1

Markdown supported · ⌘↵ to post

[samuele coppede](https://hashnode.com/@boardmain)

[Nov 24, 2023](https://hashnode.com/posts/using-supabase-authentication-in-nestjs/64a934ccb92d54d884eb8292/comment/656068176f666e97d26763a6)

Nice, only one thing, can you do an example using Fastify as http provider?

[Abiola Bakare](https://hashnode.com/@iamstarcode)

[Nov 24, 2023](https://hashnode.com/posts/using-supabase-authentication-in-nestjs/64a934ccb92d54d884eb8292/comment/656068176f666e97d26763a6#reply-656072936f666e97d267650d)

Hopefully if I have a free time I'll try to, it's quite easy to swap out Express with Fastify, but, I think the only change will be the request/response pipeline and of course setting FastifyAdapter in the main module. Check the docs here.

[docs.nestjs.com/techniques/performance](https://docs.nestjs.com/techniques/performance)
