DEV Community

Cover image for Implementing JWT Authentication and User Profile with Django Rest API Part 3

Implementing JWT Authentication and User Profile with Django Rest API Part 3

Kim on April 17, 2023

Introduction Welcome back to part three of our React and Django series, where we're creating a Notes app from scratch. As we know, secur...
Collapse
 
louien profile image
louien

Great post, but I wish you included how you tied it up all together at the end. in your testing, you only testing the login from the backend (127.0.0.1:8000) and not from the frontend. how do you pass your JWT tokens to the frontend and how do you handle subsequent requests?

Collapse
 
ki3ani profile image
Kim

To handle this, you can use Axios for making HTTP requests from the frontend. You can find the complete implementation in my frontend repository github.com/ki3ani/my-notes-frontend
Additionally, I explained the integration in detail in my previous part 2 post, which you can refer to for more context.

Collapse
 
unubi_opaluwa_f3029f48673 profile image
Unubi Opaluwa

Had to signup on this platform after reading this post, great workπŸ‘πŸ½

Collapse
 
ki3ani profile image
Kim

Thank you for the kind words

Collapse
 
nemanja333 profile image
Nemanja Djordjevic

Hello, let me know what happened to your github.
Github link you provided seems incorrect.
Please update the article.
Thank you.

Collapse
 
ki3ani profile image
Kim

I have updated it

Collapse
 
mosesmbadi profile image
mosesmbadi

Did you include the function to only allow authenticated users to access the createnote endpoint? I couldn't find it. I'm working on something similar and I'm stuck

Collapse
 
serg_sergov_0d5eac674952e profile image
Serg Sergov • Edited

Hi!
I'm new to Django and I had an idea about Serializers that they're not involved in direct data manipulation within the database, I thought it's handled in Views - can you please comment on that?