{"action":"created","issue":{"url":"https://api.github.com/repos/gothinkster/django-realworld-example-app/issues/6","repository_url":"https://api.github.com/repos/gothinkster/django-realworld-example-app","labels_url":"https://api.github.com/repos/gothinkster/django-realworld-example-app/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/gothinkster/django-realworld-example-app/issues/6/comments","events_url":"https://api.github.com/repos/gothinkster/django-realworld-example-app/issues/6/events","html_url":"https://github.com/gothinkster/django-realworld-example-app/issues/6","id":228522351,"number":6,"title":"in authentication.Models","user":{"login":"mkhan935","id":16232033,"avatar_url":"https://avatars0.githubusercontent.com/u/16232033?v=3","gravatar_id":"","url":"https://api.github.com/users/mkhan935","html_url":"https://github.com/mkhan935","followers_url":"https://api.github.com/users/mkhan935/followers","following_url":"https://api.github.com/users/mkhan935/following{/other_user}","gists_url":"https://api.github.com/users/mkhan935/gists{/gist_id}","starred_url":"https://api.github.com/users/mkhan935/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkhan935/subscriptions","organizations_url":"https://api.github.com/users/mkhan935/orgs","repos_url":"https://api.github.com/users/mkhan935/repos","events_url":"https://api.github.com/users/mkhan935/events{/privacy}","received_events_url":"https://api.github.com/users/mkhan935/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-05-14T06:36:10Z","updated_at":"2017-05-14T17:53:44Z","closed_at":null,"body":"the function token creates a new token every time because it returns self._generate_jwt_token()\r\nso when i use postman and a post request to login, i get a new token every time I correctly login.\r\n\r\n\r\nWhen i use postman to a get request, how would it find the correct user if the token keeps changing?\r\nThats why I think this may be an error, I may most likely be wrong, I've asked on slack no response, I've asked on stackoverflow no response, this is my only shot"},"comment":{"url":"https://api.github.com/repos/gothinkster/django-realworld-example-app/issues/comments/301328588","html_url":"https://github.com/gothinkster/django-realworld-example-app/issues/6#issuecomment-301328588","issue_url":"https://api.github.com/repos/gothinkster/django-realworld-example-app/issues/6","id":301328588,"user":{"login":"mkhan935","id":16232033,"avatar_url":"https://avatars0.githubusercontent.com/u/16232033?v=3","gravatar_id":"","url":"https://api.github.com/users/mkhan935","html_url":"https://github.com/mkhan935","followers_url":"https://api.github.com/users/mkhan935/followers","following_url":"https://api.github.com/users/mkhan935/following{/other_user}","gists_url":"https://api.github.com/users/mkhan935/gists{/gist_id}","starred_url":"https://api.github.com/users/mkhan935/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkhan935/subscriptions","organizations_url":"https://api.github.com/users/mkhan935/orgs","repos_url":"https://api.github.com/users/mkhan935/repos","events_url":"https://api.github.com/users/mkhan935/events{/privacy}","received_events_url":"https://api.github.com/users/mkhan935/received_events","type":"User","site_admin":false},"created_at":"2017-05-14T17:53:44Z","updated_at":"2017-05-14T17:53:44Z","body":"ok so this is what one of my tokens look like  thatkey= \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NSwiZXhwIjo1N30.9DMuXnLrBMgYdh-F-CWDUD9W3y_dViww7KqVVKN69lw\"\r\n\r\ni did the GET /api/user\r\nHeader key : Authorization\r\nValue: Token thatKey (without quotes, tried it with quotes too)\r\n\r\nthis is what i mean, since to know the token for a user, we first login, see the token value, then\r\nwe go to api/user and do the get method, the token value has changed\r\n\r\nthis is now the error i get\r\n\r\n{\r\n  \"user\": {\r\n    \"detail\": \"Invalid authentication. Could not decode token.\"\r\n  }\r\n}\r\n\r\n"}}
{"actor":{"display_login":"mkhan935"}}