It depends on the type of token you user JWT (JSON Web Token) are the most comment types to use when needed additional user details, however, you must be using OAuth2 to use these. DRF \'s internal token system cannot use JWT tokens.
On Sat, Aug 29, 2020 at 12:58 AM yashwanth balanagu < [email protected]> wrote: > To show in the user details in home page > > On Saturday, August 29, 2020 at 12:58:36 AM UTC+5:30 [email protected] > wrote: > >> Why don't you return user info along with the token when logging in or >> singing up. >> >> On Fri, Aug 28, 2020, 22:09 yashwanth balanagu <[email protected]> >> wrote: >> >>> After Registration and login i was created the auth token for login >>> authentication through api >>> >>> user auth token :- e3b026312e366c5005cc90a3bbbb6bfb430a2aa2, >>> generated by backend after login from frontend using django rest login >>> api's >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Django REST framework" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-rest-framework/51908865-3a8a-4e68-bc76-1ee6fd6e3a55n%40googlegroups.com >>> <https://groups.google.com/d/msgid/django-rest-framework/51908865-3a8a-4e68-bc76-1ee6fd6e3a55n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > You received this message because you are subscribed to the Google Groups > "Django REST framework" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-rest-framework/4548e6d6-6573-45b7-8643-1f866def5fcan%40googlegroups.com > <https://groups.google.com/d/msgid/django-rest-framework/4548e6d6-6573-45b7-8643-1f866def5fcan%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- ------------------------------------------------------------------------------- Carl J. Nobile (Software Engineer) [email protected] ------------------------------------------------------------------------------- -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/CAGQqDQ%2BQV5ymG%2BVbUZVZRWCMDv_xH42ueT8g1VVVgwQyyFVGDQ%40mail.gmail.com.
