Nestjs Supabase Auth

screenshot of Nestjs Supabase Auth
nestjs
supabase

NestJS Passport Strategy for Supabase Auth

Overview

The NestJS Supabase Auth integration offers a streamlined way to manage authentication in your applications, leveraging the powerful features of both NestJS and Supabase. Whether you are building RESTful or GraphQL APIs, this toolkit allows for robust authentication handling with minimal setup efforts. By utilizing environment variables and a modular design, developers can easily customize and protect their routes, ensuring efficient and secure user management.

Features

  • Easy Installation: Quickly set up the integration with simple installation commands via npm or yarn, making it accessible for developers at all levels.
  • Customizable Authentication Strategy: Extend the default authentication strategy to suit your application’s specific needs, enabling tailored user experiences.
  • Environment Configuration: Seamlessly pass configuration parameters using dotenv and env-cmd, which simplifies managing sensitive data in your application.
  • Route Protection: Implement secure access control effortlessly, ensuring that only authorized users can access protected routes within your API.
  • Support for GraphQL: Utilize authentication guards in GraphQL resolvers, ensuring a consistent security model across different types of APIs.
  • Current User Decorator: Easily access the currently authenticated user's information through the provided decorator, enhancing the user experience without complex boilerplate code.
nestjs
Nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript.

supabase
Supabase

Supabase is an open source Firebase alternative. Start your project with a Postgres database, Authentication, instant APIs, Edge Functions, Realtime subscriptions, and Storage.

fullstack
Fullstack

A fullstack boilerplate provides a starter application that includes both frontend and backend. It should include database, auth, payments, user roles and other backend services to build a fully featured saas or webapps.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.