Pry

Supabase

Learn how to secure your application with Supabase Authentication.

The Supabase Authentication strategy in our template provides a comprehensive and ready-to-use solution for managing user authentication. Built on top of the Supabase platform, this approach offers advanced security features, social login integrations, and a user-friendly management interface.

By default, the template comes with the following built-in authentication methods:

  • Email/Password - we added, by default, the traditional way of signing in
  • Third Party Providers - we also added by default Google and Discord Auth sign-in

Getting Started

To get started with Supabase Authentication, you'll need a Supabase account. If you don't have one yet, you can sign up here

Once you have a Supabase account, follow these steps:

  • Set Up Your Project in Supabase: Create a new project in your Supabase account and configure your desired authentication settings.
  • Retrieve Supabase API Credentials: In your Supabase project settings, you'll find API credentials that you'll need to integrate authentication into your application.
  • Set Up Environment Variables: Set up environment variables to use your Supabase API credentials. These variables will be used securely in your application.

Configuration

.env
NEXT_PUBLIC_SUPABASE_URL=your_project_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_public_key

Replace NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY with your Supabase API URL and public key. You can find these values in your Supabase project settings.

Explore More

Supabase offers a wide range of features beyond authentication, including database functionalities and APIs. Make sure to explore the Supabase documentation to take full advantage of the platform's capabilities. See official documentation

On this page