Next.js Authentication With Next-Auth V5 Credential Provider

preview_player
Показать описание
Learn how to use the Credential Provider from the Next-Auth Version 5. In this step-by-step video tutorial, you will learn to set it up and log in using email and password.

I hope you enjoy this one the same way you liked the previous videos from the series.

Let's GO 🚀

I take special care to provide you the best quality. Please SUBSCRIBE to the channel to show your support. Also, could you like/comment on this video so that it reaches others? Thanks! 🫶

Timecodes
0:00 - Intro
00:46 - A Needed Refactoring
02:03 - Create Login Form
03:05 - Configure Credential Provider
04:24 - Local Data Store - Users
06:32 - Session Strategy
07:17 - The authorize Function
10:42 - The Server Action
13:28 - Update Login Form With Server Action
15:31 - Handle Successful Login
18:11 - Handle Login Error
19:21 - A Quick Recap

## Source Code on tapaScript GitHub:

## Join tapaScript Discord

## 🤝 My Links:

## Special Links:

## 👋 Like my work? Thank You. You can sponsor me from here:

## About Me:
Tapas Adhikary is an Educator at tapaScript, Tech enthusiast, Writer, YouTuber, and Open Source projects maintainer/contributor. He is a full-stack developer with vast experience in building SaaS solutions. He is the founder of the ReactPlay platform, which is driven by open-source projects and a fast-growing community.

#nextjstutorial
#next
#nextjs14
#nextauth
#authentication
#nextjs
#nextjs13
#nextjsapprouter
#thinkinginnextjs
#nextjstutorial
#next-auth
#authjs

## Credit
Рекомендации по теме
Комментарии
Автор

Thank you, after two days of trying to figure out the credentials provider using the docs and other videos, I finally got it to work with your video. Subscribed.

advancereapp
Автор

Thank you for the tutorial. The way you explain is so helpful and easy to understand.

musabbirhossain
Автор

Just in time! cant wait for the MongoDB integration tutorials.

rakib_pro
Автор

Really helful!! thanks. I subscribed and clicked like!

otebvcu
Автор

Will be waiting for the next video Dada ❤

tusharphb
Автор

Awesome video and very helpful. Sir, I have a request for you. I need a video on adding callback and multiple middleware to include additional custom fields in the JWT. Include extra fields for the user's role and name upon social media login. We eagerly await these updates.

Tanzimhossain
Автор

excellent video, many thanks for taking the time to make this video and make it so excellently

tawsifhaque
Автор

Nice One :), I would like if you can do basic things also. like step by step guide about NextJs

UdithaTennakoon
Автор

I want those custom error messages from the authorise function inside auth.js to be rendered in the login client components page

ojomudamola
Автор

Sir, Very helpful video. But I have a very serious doubt
In V4 we used to return null;
now in V5 returning null or retuning a custom error; gives a callbackRouteError; why it that.
Sir I request please clarify this

shubhamsaini
Автор

Thanks for making this video for us..
I am requesting to you if possible make a one video about route protection in next js. Like public route, private route, restricted route.
How we protect our route properly?

Thanks again ❤

siamkhushnobish
Автор

How can i receive custom message thrown using throw new Error ( ) method, and how can i display the correct error like password not correct or something else

vlog_with_raj
Автор

how to do signup using credential provider. like i want username, email, and password

AliYasir
Автор

nextjs a scrapper lib use kora jabe ?
like puppeteer,
use kora gele o effective hobe naki ?

sadhondas
Автор

in next-auth v5 is there a way to return custom error messages in the authorize function

dileepa-mnto
Автор

What is that plugin that auto-previews the things to be typed in? Also, what is the editor thene?

julianjupiter
Автор

How can we handle refresh and acces token using credential login?

__Gojo___