Credentials Provider, Session Updates etc. | Authentication with Next Auth and Next.js 14 Part 2

  Рет қаралды 5,652

WebDevJan

WebDevJan

Ай бұрын

Authentication with Next Auth and Next.js 14 | Credentials Provider, Session Updates
In this tutorial, you'll learn how to implement authentication in a Next.js 14 application using the popular Next Auth library. We'll cover the Credentials Provider, which allows you to integrate your application with any authentication system, including your own custom backend API. You'll also learn how to manage user sessions and handle session updates, ensuring a seamless and secure authentication experience for your users. By the end of this tutorial, you'll have a solid understanding of how to add robust authentication features to your Next.js 14 applications using Next Auth's powerful capabilities.
Make sure to watch part 1 if you haven't already: • Authentication with Ne...
Find the code used in this video on my github profile: github.com/janhbnr
Since a lot of you are asking: The wallpaper is called "Amazing Landscape" and I am using the program "Wallpaper Engine" from steam.

Пікірлер: 40
@MrJfernandes7
@MrJfernandes7 7 күн бұрын
Great tutorial. Please add chapters to your videos. That helps those who aren't here for the full tutorial, but just wanted to refresh
@sips1980
@sips1980 Ай бұрын
Vielen Dank fuer den 2. Teil - Super Arbeit
@alapparate8768
@alapparate8768 Ай бұрын
this is awesome, great tutorial to the point easy to understand
@hype8248
@hype8248 Ай бұрын
Wilde Videos bro mach bitte weiter!
@AjaySingh-jz8qx
@AjaySingh-jz8qx Ай бұрын
Nice tutorial
@hussainbhagat8855
@hussainbhagat8855 Ай бұрын
This is really awsm! Can you have like an org like structure setup, where there's an organization and then the users of it and have RBAC? Ik it's complex but it's really gonna be something that a high-end skill!
@NoahCuz
@NoahCuz Ай бұрын
🔥
@User-wp8sh
@User-wp8sh Ай бұрын
thank you
@syedbilalchand1766
@syedbilalchand1766 Ай бұрын
Access and refresh token required database please video on this
@nasko235679
@nasko235679 Ай бұрын
Excuse my noob question but I'm new when it comes to authentication. When using a jwt token how do we revoke user access if needed? Don't they still have access to the token even if we remove them from our DB. I've heard that there's a way to use a database session strategy but I have no idea how that works and I've been unable to find much if any documentation about using nextauth's credentials provider + db based session.
@oopss794
@oopss794 Ай бұрын
Can next auth work with react native (as a client) ?
@user-yy7jv9yj5n
@user-yy7jv9yj5n Ай бұрын
Is there a way to update sessions in server component
@__Gojo___
@__Gojo___ Ай бұрын
How can we handle access token and refresh token with credential ?
@hussainbhagat8855
@hussainbhagat8855 29 күн бұрын
Can you do a 2FA using email based OTP using nextAuth?
@NADJIBMOUSSAOUI-ic7vt
@NADJIBMOUSSAOUI-ic7vt Ай бұрын
how to creat session and account in database with credentials please
@speedster784
@speedster784 Ай бұрын
Where did you find that live wallpaper?
@webdevjan
@webdevjan Ай бұрын
The wallpaper is called "Amazing Landscape" and I am using the program "Wallpaper Engine" from steam.
@thecodelogin
@thecodelogin 24 күн бұрын
bro tutorial on the theme that you are using in pc. :D😁
@mikhacavin
@mikhacavin 25 күн бұрын
is there a plan to deploy this project?
@MyGeorge1964
@MyGeorge1964 Ай бұрын
Given that Next-Auth v4 will be superseded by Authjs v5 would it not be exciting to extend to to Auth.js v5...
@webdevjan
@webdevjan Ай бұрын
v5 is too new for me, I will be waiting a little bit before migrating.
@rohandaddekar1541
@rohandaddekar1541 Ай бұрын
please always show doc, how you are reading
@zvgi9354
@zvgi9354 Ай бұрын
it would be great if you could do stuffs more slowly. I had to watch your video with 0.75 speed. But grate video though
@thecodelogin
@thecodelogin 24 күн бұрын
that is not an option. the video will be long and will be boring like other youtubers.
@monir63
@monir63 Ай бұрын
not working realtime data changes
@smartdriver2990
@smartdriver2990 Ай бұрын
First
@juttameerhamza
@juttameerhamza Ай бұрын
Can you please share your wallpaper image 😄
@webdevjan
@webdevjan Ай бұрын
Updated the description since a lot of people seem to want to know :)
@monir63
@monir63 Ай бұрын
next video make with middleware
@webdevjan
@webdevjan Ай бұрын
I personally don't use middleware and instead just make use of layouts in nextjs but since this is asked a lot I will try to upload a video in the next days regarding middleware.
@monir63
@monir63 Ай бұрын
@@webdevjan can you make please user profiles update data with next-auth session update also
@webdevjan
@webdevjan Ай бұрын
@@monir63 That's already covered in this video, please watch from 29:55 to the end
@monir63
@monir63 Ай бұрын
​@@webdevjan Yes but why reload pages after changing?
@webdevjan
@webdevjan Ай бұрын
@monir63 In that case just use the client hook "useSession" and once the session has been updated just run router.refresh().
@chetangk3024
@chetangk3024 Ай бұрын
can we get the updated code?
@webdevjan
@webdevjan Ай бұрын
You can find my github account in the description, on there you can find the repository of this project. :)
@pavbed
@pavbed Ай бұрын
@@webdevjan repository is not updated with the code from the video :)
@webdevjan
@webdevjan Ай бұрын
@pavbed It is. While uploading the video, I've also made sure to update the repo. Here is the commit: github.com/janhbnr/nextauth-nextjs14-starter/commit/aad195e9553e4653a5826d12f09da92fea63648d
@pavbed
@pavbed Ай бұрын
@@webdevjan thank you! :)
How to Add Google Adsense in Next.js 14
9:48
WebDevJan
Рет қаралды 3,2 М.
FOOLED THE GUARD🤢
00:54
INO
Рет қаралды 62 МЛН
버블티로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 63 МЛН
PINK STEERING STEERING CAR
00:31
Levsob
Рет қаралды 23 МЛН
Include ads.txt in NextJS
0:54
Ana's Dev Scribbles
Рет қаралды 1,3 М.
Introduction to Next.js and React
1:21:38
leerob
Рет қаралды 58 М.
Next.js App Router Authentication (Sessions, Cookies, JWTs)
11:31
The Ultimate Guide to Next Auth - Everything You Need
1:36:26
Brett Westwood - Software Engineer
Рет қаралды 56 М.
Learn Next.js Parallel Routes In 16 Minutes
16:18
Web Dev Simplified
Рет қаралды 114 М.
Comprehensive Authentication Tutorial in Next.js 14
3:25:43
Sakura Dev
Рет қаралды 32 М.
Next.js Tutorial #14 - Deploying to Vercel
4:39
Net Ninja
Рет қаралды 124 М.
сюрприз
1:00
Capex0
Рет қаралды 1,7 МЛН
Will the battery emit smoke if it rotates rapidly?
0:11
Meaningful Cartoons 183
Рет қаралды 31 МЛН
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 1,7 МЛН
Купил этот ваш VR.
37:21
Ремонтяш
Рет қаралды 297 М.