{"action":"created","issue":{"url":"https://api.github.com/repos/jpadilla/ember-simple-auth-token/issues/139","repository_url":"https://api.github.com/repos/jpadilla/ember-simple-auth-token","labels_url":"https://api.github.com/repos/jpadilla/ember-simple-auth-token/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/jpadilla/ember-simple-auth-token/issues/139/comments","events_url":"https://api.github.com/repos/jpadilla/ember-simple-auth-token/issues/139/events","html_url":"https://github.com/jpadilla/ember-simple-auth-token/issues/139","id":143492544,"number":139,"title":"Uncaught TypeError: Cannot read property 'split' of undefined","user":{"login":"luisjuniorj","id":1423420,"avatar_url":"https://avatars.githubusercontent.com/u/1423420?v=3","gravatar_id":"","url":"https://api.github.com/users/luisjuniorj","html_url":"https://github.com/luisjuniorj","followers_url":"https://api.github.com/users/luisjuniorj/followers","following_url":"https://api.github.com/users/luisjuniorj/following{/other_user}","gists_url":"https://api.github.com/users/luisjuniorj/gists{/gist_id}","starred_url":"https://api.github.com/users/luisjuniorj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luisjuniorj/subscriptions","organizations_url":"https://api.github.com/users/luisjuniorj/orgs","repos_url":"https://api.github.com/users/luisjuniorj/repos","events_url":"https://api.github.com/users/luisjuniorj/events{/privacy}","received_events_url":"https://api.github.com/users/luisjuniorj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-25T12:49:45Z","updated_at":"2016-03-27T17:41:30Z","closed_at":null,"body":"I just cant \"not to login\" how to handle invalid credentials? if i send a null token, the error persists..."},"comment":{"url":"https://api.github.com/repos/jpadilla/ember-simple-auth-token/issues/comments/202111162","html_url":"https://github.com/jpadilla/ember-simple-auth-token/issues/139#issuecomment-202111162","issue_url":"https://api.github.com/repos/jpadilla/ember-simple-auth-token/issues/139","id":202111162,"user":{"login":"eluciano11","id":6109151,"avatar_url":"https://avatars.githubusercontent.com/u/6109151?v=3","gravatar_id":"","url":"https://api.github.com/users/eluciano11","html_url":"https://github.com/eluciano11","followers_url":"https://api.github.com/users/eluciano11/followers","following_url":"https://api.github.com/users/eluciano11/following{/other_user}","gists_url":"https://api.github.com/users/eluciano11/gists{/gist_id}","starred_url":"https://api.github.com/users/eluciano11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eluciano11/subscriptions","organizations_url":"https://api.github.com/users/eluciano11/orgs","repos_url":"https://api.github.com/users/eluciano11/repos","events_url":"https://api.github.com/users/eluciano11/events{/privacy}","received_events_url":"https://api.github.com/users/eluciano11/received_events","type":"User","site_admin":false},"created_at":"2016-03-27T17:41:30Z","updated_at":"2016-03-27T17:41:30Z","body":"Hi @luisjuniorj , is your backend returning a property named `token` after the authentication? By default this add-on uses the name `token` as the `tokenPropertyName`. If your backend returns something like `auth` you should change your `tokenPropertyName` to `auth` in your `config/environment.js`\r\n\r\nExample:\r\n```javascript\r\n  ENV['ember-simple-auth-token'] = {\r\n    tokenPropertyName: 'auth'\r\n  };\r\n```"}}