{"action":"created","issue":{"url":"https://api.github.com/repos/feathersjs/feathers-authentication/issues/84","repository_url":"https://api.github.com/repos/feathersjs/feathers-authentication","labels_url":"https://api.github.com/repos/feathersjs/feathers-authentication/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/feathersjs/feathers-authentication/issues/84/comments","events_url":"https://api.github.com/repos/feathersjs/feathers-authentication/issues/84/events","html_url":"https://github.com/feathersjs/feathers-authentication/issues/84","id":137064238,"number":84,"title":"Username response ?","user":{"login":"naptiv","id":8124562,"avatar_url":"https://avatars.githubusercontent.com/u/8124562?v=3","gravatar_id":"","url":"https://api.github.com/users/naptiv","html_url":"https://github.com/naptiv","followers_url":"https://api.github.com/users/naptiv/followers","following_url":"https://api.github.com/users/naptiv/following{/other_user}","gists_url":"https://api.github.com/users/naptiv/gists{/gist_id}","starred_url":"https://api.github.com/users/naptiv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naptiv/subscriptions","organizations_url":"https://api.github.com/users/naptiv/orgs","repos_url":"https://api.github.com/users/naptiv/repos","events_url":"https://api.github.com/users/naptiv/events{/privacy}","received_events_url":"https://api.github.com/users/naptiv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-28T15:35:51Z","updated_at":"2016-02-28T16:57:48Z","closed_at":null,"body":"I just get the id and token as response on authenticate using postegres \r\nIf I try to `app.logout()` I also get a `TypeError: storage.remove is not a function`\r\n\r\n```\r\nimport io from 'socket.io-client';\r\nimport feathers from 'feathers/client';\r\nimport hooks from 'feathers-hooks';\r\nimport socketio from 'feathers-socketio/client';\r\nimport storage from 'feathers-memory';\r\nimport localstorage from 'feathers-localstorage';\r\nimport authentication from 'feathers-authentication/client';\r\n\r\nconst socket = io('localhost:3030');\r\nconst api = feathers()\r\n  .configure(socketio(socket)) // you could use Primus or REST instead\r\n  .configure(hooks())\r\n  .use('storage', localstorage())\r\n  .configure(authentication());\r\n\r\n  api.io.on('connect', function(){\r\n      console.log(\"connection....\");\r\n      api.authenticate({\r\n        type: 'local',\r\n        'email': 'user@email.com',\r\n        'password': '1234'\r\n      }).then(function(result){\r\n          console.log(result);\r\n      }).catch(function(error){\r\n        console.error('Error authenticating!', error);\r\n      });\r\n  });\r\n\r\n\r\n  api.io.on(\"authenticated\", function(result){\r\n\r\n    console.log(\"user is :\");\r\n    api.user().then(function(user){\r\n      console.log(user);\r\n    })\r\n \r\n  });\r\n\r\n  api.io.connect();\r\n\r\n```\r\n\r\nI've also tried with `.configure(authentication({ idField: 'id' })); ` "},"comment":{"url":"https://api.github.com/repos/feathersjs/feathers-authentication/issues/comments/189904358","html_url":"https://github.com/feathersjs/feathers-authentication/issues/84#issuecomment-189904358","issue_url":"https://api.github.com/repos/feathersjs/feathers-authentication/issues/84","id":189904358,"user":{"login":"ekryski","id":599019,"avatar_url":"https://avatars.githubusercontent.com/u/599019?v=3","gravatar_id":"","url":"https://api.github.com/users/ekryski","html_url":"https://github.com/ekryski","followers_url":"https://api.github.com/users/ekryski/followers","following_url":"https://api.github.com/users/ekryski/following{/other_user}","gists_url":"https://api.github.com/users/ekryski/gists{/gist_id}","starred_url":"https://api.github.com/users/ekryski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekryski/subscriptions","organizations_url":"https://api.github.com/users/ekryski/orgs","repos_url":"https://api.github.com/users/ekryski/repos","events_url":"https://api.github.com/users/ekryski/events{/privacy}","received_events_url":"https://api.github.com/users/ekryski/received_events","type":"User","site_admin":false},"created_at":"2016-02-28T16:57:48Z","updated_at":"2016-02-28T16:57:48Z","body":"@naptiv I've verified that the user does come back with Postgres. Using feathers-authentication@0.4.0. You need to set the `idField` to `'id'` at the root of your auth config section. So:\r\n\r\n```js\r\n{\r\n  \"host\": \"localhost\",\r\n  \"port\": 3030,\r\n  \"postgres\": \"postgres://postgres:@localhost:5432/test\",\r\n  \"public\": \"../public/\",\r\n  \"auth\": {\r\n    \"idField\": \"id\",\r\n    \"token\": {\r\n      \"secret\": \"a secret\"\r\n    },\r\n    \"local\": {}\r\n  }\r\n}\r\n```"}}