{"action":"created","issue":{"url":"https://api.github.com/repos/ronzeidman/ng2-ui-auth/issues/68","repository_url":"https://api.github.com/repos/ronzeidman/ng2-ui-auth","labels_url":"https://api.github.com/repos/ronzeidman/ng2-ui-auth/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/ronzeidman/ng2-ui-auth/issues/68/comments","events_url":"https://api.github.com/repos/ronzeidman/ng2-ui-auth/issues/68/events","html_url":"https://github.com/ronzeidman/ng2-ui-auth/issues/68","id":195650478,"number":68,"title":"Configservice resolveToken","user":{"login":"apreg","id":1009668,"avatar_url":"https://avatars.githubusercontent.com/u/1009668?v=3","gravatar_id":"","url":"https://api.github.com/users/apreg","html_url":"https://github.com/apreg","followers_url":"https://api.github.com/users/apreg/followers","following_url":"https://api.github.com/users/apreg/following{/other_user}","gists_url":"https://api.github.com/users/apreg/gists{/gist_id}","starred_url":"https://api.github.com/users/apreg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apreg/subscriptions","organizations_url":"https://api.github.com/users/apreg/orgs","repos_url":"https://api.github.com/users/apreg/repos","events_url":"https://api.github.com/users/apreg/events{/privacy}","received_events_url":"https://api.github.com/users/apreg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-12-14T21:27:55Z","updated_at":"2016-12-17T17:25:37Z","closed_at":null,"body":"I try to integrate facebook in my app with the help of ng2-ui-auth.\r\nHere is my current config: \r\n```\r\nproviders = {\r\nfacebook: {authorizationEndpoint: 'https://www.facebook.com/v2.8/dialog/oauth',clientId:'422321427968640', responseType: 'token', url: 'http://localhost:8080/login/facebook'}\r\n}\r\n```\r\nI get back access_token in an object so the resolveToken in config.service fails at this line:\r\n```\r\n const accessToken: string | Object | null | undefined = response && response.json() &&\r\n            (response.json().access_token || response.json().token || response.json().data);\r\n```\r\nIf I seen correctly I can define a custom resolver so I can workaround this issue.\r\n"},"comment":{"url":"https://api.github.com/repos/ronzeidman/ng2-ui-auth/issues/comments/267775060","html_url":"https://github.com/ronzeidman/ng2-ui-auth/issues/68#issuecomment-267775060","issue_url":"https://api.github.com/repos/ronzeidman/ng2-ui-auth/issues/68","id":267775060,"user":{"login":"ronzeidman","id":14001863,"avatar_url":"https://avatars.githubusercontent.com/u/14001863?v=3","gravatar_id":"","url":"https://api.github.com/users/ronzeidman","html_url":"https://github.com/ronzeidman","followers_url":"https://api.github.com/users/ronzeidman/followers","following_url":"https://api.github.com/users/ronzeidman/following{/other_user}","gists_url":"https://api.github.com/users/ronzeidman/gists{/gist_id}","starred_url":"https://api.github.com/users/ronzeidman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronzeidman/subscriptions","organizations_url":"https://api.github.com/users/ronzeidman/orgs","repos_url":"https://api.github.com/users/ronzeidman/repos","events_url":"https://api.github.com/users/ronzeidman/events{/privacy}","received_events_url":"https://api.github.com/users/ronzeidman/received_events","type":"User","site_admin":false},"created_at":"2016-12-17T17:25:37Z","updated_at":"2016-12-17T17:25:37Z","body":"Please try the master branch and tell me if it works for you.\r\nThanks"}}
{"actor":{"display_login":"ronzeidman"}}