0π
I would suggest you look into JWT tokens. Its widely used way to provide front-end identity to a user. So, once you authenticate your user using REST call, you can get back a JWT token from the server β this value can also be stored on the server for later retrieval which is your use case. Further, for any other protected routes on your Django REST, you can use this token for authorization easily. More about this is on their documentation.
For your use case, once you authenticate a user, generate a JWT in the back end and store it on a database and return this value to the front end. (Use a POST request for this with AUTH headers β this is basic authentication for headers). After this if you want to get the user details from the back end, create a route there and request it from front end by passing the JWT token that was previously saved on your front end.
Similarly, for other routes, you can use this JWT as part of the request headers from the front end to authenticate (you can implement protected routes on your back end using this.)
Check out JWT here: https://jwt.io/.
Please let me know if this makes sense. If you do not understand feel free to ping me in the comments.
βEDITβ
More Resources