Use validate method to output the user details (name, age, ...etc) along side with the token, now you have the token and the user, u don't have to extract the user from the token.
use the token and the user together instead of using the token only in React
check this, line 69
Here is the full project (Django DRF for backend, React for Front-end )
On Thu, Aug 25, 2022 at 9:03 PM Aman Stark <aman.stark1925@gmail.com> wrote:
Can we use 2-3 level of primary key like . (1/1 , 1/2 , 1/3 ) , (2/1,2/2,2/3) .--On Wednesday, 24 August 2022 at 19:24:23 UTC+5:30 dashlaksh...@gmail.com wrote:Hello everyone,I want to create a user authentication app using ReactJS and django. But facing problems in authenticating with the jsonwebtokens in ReactJS. Can anybody provide correct guide of implementing DjangoRestFramework simple-jwt and ReactJS jet ?
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a555f04d-b312-4626-9bfc-1b46c6826d5cn%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPV6dzg%2BBDqVxLumLjb9X9j%2B1AoDR7mHAeXrCoY7ovq6w35jbg%40mail.gmail.com.
No comments:
Post a Comment