Auth Helpers screenshot

Auth Helpers

Author Avatar Theme by Supabase
Updated: 27 Nov 2024
903 Stars

now deprecated.

Categories

Overview

@supabase/auth-helpers is a collection of framework-specific Auth utilities for working with Supabase. It provides support for various frameworks such as Next.js, Nuxt, SvelteKit, and Remix. The package includes examples and packages for each framework, making it easier for developers to integrate Supabase authentication into their applications. The utilities are 100% TypeScript-based and come with additional tools such as ESLint and Prettier for improved code quality.

Features

  • Framework-specific utilities: @supabase/auth-helpers provides framework-specific utilities for Next.js, Nuxt, SvelteKit, and Remix, allowing developers to easily integrate Supabase authentication into their applications.
  • Examples and packages: The package includes several examples demonstrating the usage of @supabase/auth-helpers with different frameworks. It also provides individual packages for each framework, making it convenient to install and use the utilities.
  • TypeScript support: The utilities are built using TypeScript, providing static type checking and improving development efficiency.
  • ESLint and Prettier integration: @supabase/auth-helpers includes ESLint and Prettier configurations for code linting and formatting, ensuring code quality and consistency.

Installation

To install @supabase/auth-helpers, follow these steps:

  1. Install the package using npm or yarn:
npm install @supabase/auth-helpers

or

yarn add @supabase/auth-helpers
  1. Depending on your framework, install the specific package for that framework. For example, to install the Next.js package:
npm install @supabase/auth-helpers-nextjs

or

yarn add @supabase/auth-helpers-nextjs
  1. Import and use the utility functions in your application as needed.

Summary

@supabase/auth-helpers is a useful collection of Auth utilities for working with Supabase, supporting popular frameworks such as Next.js, Nuxt, SvelteKit, and Remix. With examples and individual packages for each framework, it provides a convenient solution for integrating Supabase authentication into different applications. The TypeScript support and integration with ESLint and Prettier further enhance the development experience and code quality.