MVP in Minutes
Quick Start

Authentication

In this section, we will set up the authentication for the application.

In MVPinMinutes, we use the Clerk library to handle authentication.

Set up the Clerk

Head to the Clerk Dashboard and create a new application. And in the developer section, you can find the Clerk Publishable Key and Clerk Secret Key.

Set up the Clerk in the application

Copy the Clerk Publishable Key and Clerk Secret Key and paste them in the .env.local file.

NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
NEXT_PUBLIC_CLERK_SECRET_KEY=

Note

Clerk is default in development mode.

Configuring Clerk webhooks

Clerk webhooks are used to store the user data in the database. And we need to configure the webhooks in the Clerk Dashboard.

  1. Go to the Clerk Dashboard and click on the Webhooks tab.
  2. Click on the Add Webhook button.
  3. Select the User event.
  4. Enter the webhook URL as http://localhost:3000/api/webhooks/clerk.
  5. Click on the Add Webhook button.

Video Tutorial

Coming Soon...

On this page