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!!
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.
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.
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.
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!!
Thank you! I really appreciate it!
Thanks for the video, Very helpful!
Thank you! Appreciate it!
i love your strapi tutorial
Man, you saved my life...
Thank you! I’m glad you found the video helpful!
This video really helps, thanks :)
Thank you! I'm glad it helped!
Nice video! How can I protect some frontend pages based on the user role?
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.
and what about refresh token and expire jwt?
How make log out there?
Please also make a video about strapi login with Google
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.
@@nltech1 thanks
is there a way to remove default value such as username from a User model?
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.
Thank u
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.