Auth and Private Routes Next.js 13 | Mongodb & Next Auth Credentials
HTML-код
- Опубликовано: 4 окт 2024
- This tutorial video dives into the integration of Next.js authentication and private routes using MongoDB as the database and Next Auth for streamlined authentication. This video is made for new version of next js which is next js 13 and using app router.
By combining these powerful technologies, you'll discover how to implement secure authentication functionalities in your Next.js applications.
Learn how to create private routes that require user authentication, ensuring that only authorized users can access sensitive pages or features
it's insane how I searched the entire web and your 2 week old video is the only solution to my use case.
thank you, great video! very well explained as well.
you have gained another subscriber.
I’ve been going through the same thing. Next update makes all the stuff I’ve been trying to do harder.
Clear, straight to point, nice writing style, not a lenghty video and with exactly the information that i was looking for.
Also + a million thanks for using typescript, saved me a lot of time ahead
If you do not mind, in the future it would even be more helpful to attach some written code in the description
Very good and clear explanation in a short amount of time. Thank you.
Sir g thankyou so much my solve this problem once again thankyou so much ❤❤❤❤❤
been looking for this kind of tutorial, you saved my day, TY
Hi, kindly provide the source code link, very well explained.
Masterpiece ❤ Love from Bangladesh
thank bro, nice tutorial 100/100 performance
Amazing Tutorial Thanks allot for this awesome video.
Thankyou for your education, its really helpfull for me.
Thankyouuuu I couldn´t find the way to see the "role" baceause I was just getting email and name, now it is working just as I want all thanks to you
Please add the code in the discription so we can see the front page !
I am facing some errors. Could you please share me the github link? Admin route not working.
github repo should be attested on
What's the point of a tutorial if you don't share code or repo?
Perfect, thanks a lot.
thank a lot for this video
lots of thanks , is it mistake ? if protect admin pages with middleware at server and use session at the client side ?....
When I move my auth to guest repo bcrypt starts giving errors
Can you send me the repo of this project?
How do i protect my API routes based on the users role?
Please provide github code for this
github link ??
hi Sir, i got an error when im wrapping Layout root with AuthProvider.
this is the error : Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & Props'.ts(2559)
this is my AuthProvider.tsx
"use client";
import { SessionProvider } from "next-auth/react";
import React, { ReactNode } from "react";
interface Props {
childern?: ReactNode;
}
export default function AuthProvider({ childern }: Props) {
return {childern};
}
"childern"
it's not working on production in vercel
Don't know why but I am using this in production and it is working fine.
@@fsniraj my mistake it's solved thanks for making this video
what was the mistake?
oh ma gosh
expect pure JavaScript
very fast video noraml person can't take esay