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

Комментарии • 35

  • @Pasyy
    @Pasyy Год назад +13

    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.

    • @Pasyy
      @Pasyy Год назад

      you have gained another subscriber.

    • @Peteman1998
      @Peteman1998 Год назад +2

      I’ve been going through the same thing. Next update makes all the stuff I’ve been trying to do harder.

  • @SheriffKoder9
    @SheriffKoder9 9 месяцев назад +2

    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

  • @sarectua
    @sarectua Год назад +1

    Very good and clear explanation in a short amount of time. Thank you.

  • @haseebshahreffai8546
    @haseebshahreffai8546 9 месяцев назад

    Sir g thankyou so much my solve this problem once again thankyou so much ❤❤❤❤❤

  • @aljimsonmegrino9580
    @aljimsonmegrino9580 Год назад

    been looking for this kind of tutorial, you saved my day, TY

  • @luqmanusman70
    @luqmanusman70 Год назад +5

    Hi, kindly provide the source code link, very well explained.

  • @poizonncs8264
    @poizonncs8264 Год назад

    Masterpiece ❤ Love from Bangladesh

  • @thongpham
    @thongpham Год назад +1

    thank bro, nice tutorial 100/100 performance

  • @m.sulemankhan3992
    @m.sulemankhan3992 Год назад

    Amazing Tutorial Thanks allot for this awesome video.

  • @kwanzegs
    @kwanzegs Год назад

    Thankyou for your education, its really helpfull for me.

  • @jimenakatu1178
    @jimenakatu1178 Год назад

    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

  • @redbeardjunior
    @redbeardjunior Год назад +1

    Please add the code in the discription so we can see the front page !

  • @RafathBinZafarAuvee
    @RafathBinZafarAuvee Год назад +1

    I am facing some errors. Could you please share me the github link? Admin route not working.

  • @sofiuzzaman-sofi
    @sofiuzzaman-sofi Год назад +2

    github repo should be attested on

  • @salman0ansari
    @salman0ansari 11 месяцев назад

    What's the point of a tutorial if you don't share code or repo?

  • @Տtyle
    @Տtyle Год назад

    Perfect, thanks a lot.

  • @gauravbawa5609
    @gauravbawa5609 11 месяцев назад

    thank a lot for this video

  • @aramabdulrahman2087
    @aramabdulrahman2087 Год назад

    lots of thanks , is it mistake ? if protect admin pages with middleware at server and use session at the client side ?....

  • @rhouzmerii
    @rhouzmerii Год назад

    When I move my auth to guest repo bcrypt starts giving errors

  • @TheNuGamers
    @TheNuGamers Год назад +1

    Can you send me the repo of this project?

  • @mangoapi
    @mangoapi Год назад

    How do i protect my API routes based on the users role?

  • @harshitsrivastava2583
    @harshitsrivastava2583 Год назад +1

    Please provide github code for this

  • @kartikrajput2131
    @kartikrajput2131 Год назад +2

    github link ??

  • @MrOkl9
    @MrOkl9 Год назад

    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};
    }

    • @al-ft1ng
      @al-ft1ng 10 месяцев назад

      "childern"

  • @magicofmusic4911
    @magicofmusic4911 Год назад

    it's not working on production in vercel

    • @fsniraj
      @fsniraj  Год назад

      Don't know why but I am using this in production and it is working fine.

    • @magicofmusic4911
      @magicofmusic4911 Год назад

      @@fsniraj my mistake it's solved thanks for making this video

    • @devrabic
      @devrabic 9 месяцев назад

      what was the mistake?

  • @online_sourcecode1613
    @online_sourcecode1613 7 месяцев назад +1

    oh ma gosh

  • @derinyazilim
    @derinyazilim Год назад

    expect pure JavaScript

  • @cyphermediaschool
    @cyphermediaschool 8 месяцев назад

    very fast video noraml person can't take esay