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

Return token with user #96

Closed
tomkukral opened this issue Oct 30, 2017 · 1 comment
Closed

Return token with user #96

tomkukral opened this issue Oct 30, 2017 · 1 comment

Comments

@tomkukral
Copy link
Contributor

tomkukral commented Oct 30, 2017

Return user object together with access token.

{                   
  "access_token": "e...uxQ",
  "user": {
  ... user.get_dict()
  }
}

This flask-jwt method shoud be changed:


def _default_auth_response_handler(access_token, identity):
    return jsonify({'access_token': access_token.decode('utf-8')})
@tomkukral tomkukral changed the title return token with user Return token with user Oct 31, 2017
ekhomyakova pushed a commit that referenced this issue Sep 4, 2018
@tomkukral
Copy link
Contributor Author

Closing as STALE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant