You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to find a way to retrieve the user information by posting the token provided by django-knox to some endpoint. I know that I can do the opposite (post user information and get token to pass into headers, etc.), but I can't find anyway to retrieve the user information if all I have is the valid django-knox token. Thanks for the help
christian
The text was updated successfully, but these errors were encountered:
You should be able to just serialize request.user which will be your default user model, just ensure you only include the information you want to send back, e.g. no password
On Tue, Apr 27, 2021 at 2:52 AM Psi ***@***.***> wrote:
You should be able to just serialize request.user which will be your
default user model, just ensure you only include the information you want
to send back, e.g. no password
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#247 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMKRROV4Q5WKCABNFVNDHSLTK2CMRANCNFSM42RGZL6Q>
.
Hello,
I am trying to find a way to retrieve the user information by posting the token provided by django-knox to some endpoint. I know that I can do the opposite (post user information and get token to pass into headers, etc.), but I can't find anyway to retrieve the user information if all I have is the valid django-knox token. Thanks for the help
christian
The text was updated successfully, but these errors were encountered: