Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login should return users id #52

Closed
acquayefrank opened this issue Feb 23, 2015 · 1 comment
Closed

Login should return users id #52

acquayefrank opened this issue Feb 23, 2015 · 1 comment

Comments

@acquayefrank
Copy link

Hi, I'm currently using django-rest-auth and I love it, but I think it would be better if a login users id is returned with the key and not just the key.

@mateusz-sikora
Copy link
Contributor

@acquayefrank You have two ways to do that:

  1. create custom serializer and override response_serializer attribure in Login view
  2. override get_response method in Login view

steverecio pushed a commit to steverecio/django-rest-auth that referenced this issue Jun 3, 2020
Pass context to JWTSerializer and TokenSerializer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants