Uploaded March 2024 | Updated November 2026, 3 minutes ago
In this video, we'll add authentication and payment subscriptions to our NextJs 14 application using Clerk and Stripe.
👉🏼 The Ultimate NextJs 14 Course
→ hamedbahram.io/courses/nextjs
👉🏼 Clerk
→ https://dub.sh/JI7pwnH
👉🏼 Project source code
→ github.com/HamedBahram/next-ai-chatbot
👉🏼 Work with me
→ hamedbahram.io/hire
Chapters
0:00 Intro
3:00 Project setup
4:24 Adding Clerk
13:40 Protecting our endpoint
17:30 Adding metadata to User object
22:25 Adding Toast notification
26:35 Alternative approach
28:10 Deducting credits
30:00 Handling API errors
33:30 Adding Stripe
54:54 Recap
In this video, we'll add authentication and payment subscriptions to our NextJs 14 application using Clerk and Stripe.
👉🏼 The Ultimate NextJs 14 Course
→ hamedbahram.io/courses/nextjs
👉🏼 Clerk
→ https://dub.sh/JI7pwnH
👉🏼 Project source code
→ github.com/HamedBahram/next-ai-chatbot
👉🏼 Work with me
→ hamedbahram.io/hire
Chapters
0:00 Intro
3:00 Project setup
4:24 Adding Clerk
13:40 Protecting our endpoint
17:30 Adding metadata to User object
22:25 Adding Toast notification
26:35 Alternative approach
28:10 Deducting credits
30:00 Handling API errors
33:30 Adding Stripe
54:54 Recap










