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.
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.
- Go to the Clerk Dashboard and click on the
Webhookstab. - Click on the
Add Webhookbutton. - Select the
Userevent. - Enter the webhook URL as
http://localhost:3000/api/webhooks/clerk. - Click on the
Add Webhookbutton.
Video Tutorial
Coming Soon...