JWT Authentication with Login and Registration Views 🚀 Strapi Course #6

Поділитися
Вставка
  • Опубліковано 15 вер 2024

КОМЕНТАРІ • 18

  • @kshitijkumarsaini9501
    @kshitijkumarsaini9501 9 місяців тому +2

    Hi bro, I must say your strapi series is the best I found on the internet. And I can't explain how passionately wait for the videos in the series. I know you might be having side hussle which is why the videos take some time. But I really wanna appreciate the hard work and the content you provide here. You are doing an amazing work
    Keep that up bro!!

    • @nltech1
      @nltech1  9 місяців тому +1

      Thank you! I really appreciate it!

  • @miroslavmyrha
    @miroslavmyrha Місяць тому +2

    This video really helps, thanks :)

    • @nltech1
      @nltech1  Місяць тому

      Thank you! I'm glad it helped!

  • @mdhimuhimu1631
    @mdhimuhimu1631 4 місяці тому

    i love your strapi tutorial

  • @hongkaihuang1503
    @hongkaihuang1503 9 місяців тому +2

    Man, you saved my life...

    • @nltech1
      @nltech1  9 місяців тому +1

      Thank you! I’m glad you found the video helpful!

  • @caducoder
    @caducoder 6 місяців тому +2

    Nice video! How can I protect some frontend pages based on the user role?

    • @nltech1
      @nltech1  6 місяців тому +1

      It really depends on the front-end application/client you are building. Generally the process is to retrieve the JWT token on login (and save it in session storage/cookies/local storage). You can then validate the JWT token at any time (as the user navigates for example), as you have it on the client. All of these operations will happen with HTTP requests to the Strapi API.

  • @user-cs7vo3zn1t
    @user-cs7vo3zn1t Місяць тому

    and what about refresh token and expire jwt?

  • @openteeshirt
    @openteeshirt 9 місяців тому +1

    Please also make a video about strapi login with Google

    • @nltech1
      @nltech1  9 місяців тому

      I might make a video about other auth strategies, but it won’t happen soon. I have prioritised the course content already and a couple of videos are work in progress. You can apply the same information I provided for the email strategy and read a bit more to integrate the Google auth.

    • @openteeshirt
      @openteeshirt 9 місяців тому

      @@nltech1 thanks

  • @anastasiia-cp1hk
    @anastasiia-cp1hk 6 місяців тому

    How make log out there?

  • @MykhailoVavrykovych
    @MykhailoVavrykovych 9 місяців тому

    is there a way to remove default value such as username from a User model?

    • @kshitijkumarsaini9501
      @kshitijkumarsaini9501 9 місяців тому

      As far as I know it's not possible as the user collection type comes from strapi plugin. So you can't delete the predefined fields.

  • @brijeshshukla5284
    @brijeshshukla5284 4 місяці тому

    Thank u

  • @MahediHSharif
    @MahediHSharif Місяць тому

    is it mandatory to use username, for create an account, I'm trying to use first name and last name. but it doesn't work. i'm confused can you please clear me i can use my custom form out of the starpi roles, like my form will be first name, last name, email, password etc i don't want to use username.