{"action":"created","issue":{"url":"https://api.github.com/repos/flavors/django-graphql-jwt/issues/53","repository_url":"https://api.github.com/repos/flavors/django-graphql-jwt","labels_url":"https://api.github.com/repos/flavors/django-graphql-jwt/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/flavors/django-graphql-jwt/issues/53/comments","events_url":"https://api.github.com/repos/flavors/django-graphql-jwt/issues/53/events","html_url":"https://github.com/flavors/django-graphql-jwt/issues/53","id":383940478,"node_id":"MDU6SXNzdWUzODM5NDA0Nzg=","number":53,"title":"Return User with ObtainJSONWebToken and token_auth decorator","user":{"login":"nwaxiomatic","id":6418424,"node_id":"MDQ6VXNlcjY0MTg0MjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6418424?v=4","gravatar_id":"","url":"https://api.github.com/users/nwaxiomatic","html_url":"https://github.com/nwaxiomatic","followers_url":"https://api.github.com/users/nwaxiomatic/followers","following_url":"https://api.github.com/users/nwaxiomatic/following{/other_user}","gists_url":"https://api.github.com/users/nwaxiomatic/gists{/gist_id}","starred_url":"https://api.github.com/users/nwaxiomatic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwaxiomatic/subscriptions","organizations_url":"https://api.github.com/users/nwaxiomatic/orgs","repos_url":"https://api.github.com/users/nwaxiomatic/repos","events_url":"https://api.github.com/users/nwaxiomatic/events{/privacy}","received_events_url":"https://api.github.com/users/nwaxiomatic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-23T23:17:46Z","updated_at":"2018-11-29T18:52:58Z","closed_at":"2018-11-29T18:52:58Z","author_association":"NONE","body":"currently the ObtainJSONWebToken mutation, specifically the @token_auth decorator, doesnt return the user with the token so you have to send two requests to get the user data after logging in. \r\n\r\nBecause token_auth is written as a decorator (an area I'm not super comfortable with) it makes it difficult to extend this mutation to get the user data, so you currently have to rewrite the entire decorator just to add ```payload.user = user``` in the `on_resolve` method inside it."},"comment":{"url":"https://api.github.com/repos/flavors/django-graphql-jwt/issues/comments/442949993","html_url":"https://github.com/flavors/django-graphql-jwt/issues/53#issuecomment-442949993","issue_url":"https://api.github.com/repos/flavors/django-graphql-jwt/issues/53","id":442949993,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Mjk0OTk5Mw==","user":{"login":"nwaxiomatic","id":6418424,"node_id":"MDQ6VXNlcjY0MTg0MjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6418424?v=4","gravatar_id":"","url":"https://api.github.com/users/nwaxiomatic","html_url":"https://github.com/nwaxiomatic","followers_url":"https://api.github.com/users/nwaxiomatic/followers","following_url":"https://api.github.com/users/nwaxiomatic/following{/other_user}","gists_url":"https://api.github.com/users/nwaxiomatic/gists{/gist_id}","starred_url":"https://api.github.com/users/nwaxiomatic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwaxiomatic/subscriptions","organizations_url":"https://api.github.com/users/nwaxiomatic/orgs","repos_url":"https://api.github.com/users/nwaxiomatic/repos","events_url":"https://api.github.com/users/nwaxiomatic/events{/privacy}","received_events_url":"https://api.github.com/users/nwaxiomatic/received_events","type":"User","site_admin":false},"created_at":"2018-11-29T18:52:58Z","updated_at":"2018-11-29T18:52:58Z","author_association":"NONE","body":"amazing thanks!"}}
{"actor":{"display_login":"nwaxiomatic"}}