{"action":"created","issue":{"url":"https://api.github.com/repos/abacritt/angularx-social-login/issues/24","repository_url":"https://api.github.com/repos/abacritt/angularx-social-login","labels_url":"https://api.github.com/repos/abacritt/angularx-social-login/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/abacritt/angularx-social-login/issues/24/comments","events_url":"https://api.github.com/repos/abacritt/angularx-social-login/issues/24/events","html_url":"https://github.com/abacritt/angularx-social-login/issues/24","id":275946843,"node_id":"MDU6SXNzdWUyNzU5NDY4NDM=","number":24,"title":"Hi I am unable to signout for Google with this code....... Ca n any one give suggestions???","user":{"login":"madhaviJakkam","id":33888195,"node_id":"MDQ6VXNlcjMzODg4MTk1","avatar_url":"https://avatars0.githubusercontent.com/u/33888195?v=4","gravatar_id":"","url":"https://api.github.com/users/madhaviJakkam","html_url":"https://github.com/madhaviJakkam","followers_url":"https://api.github.com/users/madhaviJakkam/followers","following_url":"https://api.github.com/users/madhaviJakkam/following{/other_user}","gists_url":"https://api.github.com/users/madhaviJakkam/gists{/gist_id}","starred_url":"https://api.github.com/users/madhaviJakkam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madhaviJakkam/subscriptions","organizations_url":"https://api.github.com/users/madhaviJakkam/orgs","repos_url":"https://api.github.com/users/madhaviJakkam/repos","events_url":"https://api.github.com/users/madhaviJakkam/events{/privacy}","received_events_url":"https://api.github.com/users/madhaviJakkam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2017-11-22T05:11:18Z","updated_at":"2018-07-24T20:57:55Z","closed_at":null,"author_association":"NONE","body":"Hi I am unable to signout for Google with this code....... Ca n any one give suggestions???\r\n\r\nI implemented as it is in angular4 social login example..................\r\nAuthService.prototype.signOut = function () {\r\nvar _this = this;\r\nreturn new Promise(function (resolve, reject) {\r\n//if (providerObject) {\r\nif (_this._user && _this._user.provider) {\r\nvar /** @type {?} / providerId = _this._user.provider;\r\nvar /* @type {?} */ providerObject = _this.providers.get(providerId);\r\nproviderObject.signOut().then(function () {\r\n_this._user = null;\r\n_this._authState.next(null);\r\nresolve();\r\n// });\r\n}).catch((err) => {\r\nthis._authState.next(null);\r\n});\r\n}\r\nelse {\r\nreject(AuthService.LOGIN_PROVIDER_NOT_FOUND);\r\n}\r\n});\r\n};\r\nreturn AuthService;\r\n\r\nGoogleLoginProvider.prototype.signOut = function () {\r\nvar _this = this;\r\nreturn new Promise(function (resolve, reject) {\r\n_this.auth2.signOut().then(function (response) {\r\nresolve();\r\n//_this.auth2.signIn(false);\r\n});"},"comment":{"url":"https://api.github.com/repos/abacritt/angularx-social-login/issues/comments/407549749","html_url":"https://github.com/abacritt/angularx-social-login/issues/24#issuecomment-407549749","issue_url":"https://api.github.com/repos/abacritt/angularx-social-login/issues/24","id":407549749,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzU0OTc0OQ==","user":{"login":"rahulswimmer","id":11225247,"node_id":"MDQ6VXNlcjExMjI1MjQ3","avatar_url":"https://avatars3.githubusercontent.com/u/11225247?v=4","gravatar_id":"","url":"https://api.github.com/users/rahulswimmer","html_url":"https://github.com/rahulswimmer","followers_url":"https://api.github.com/users/rahulswimmer/followers","following_url":"https://api.github.com/users/rahulswimmer/following{/other_user}","gists_url":"https://api.github.com/users/rahulswimmer/gists{/gist_id}","starred_url":"https://api.github.com/users/rahulswimmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahulswimmer/subscriptions","organizations_url":"https://api.github.com/users/rahulswimmer/orgs","repos_url":"https://api.github.com/users/rahulswimmer/repos","events_url":"https://api.github.com/users/rahulswimmer/events{/privacy}","received_events_url":"https://api.github.com/users/rahulswimmer/received_events","type":"User","site_admin":false},"created_at":"2018-07-24T20:57:55Z","updated_at":"2018-07-24T20:57:55Z","author_association":"NONE","body":" Following is the code for signOut:\r\n\r\n    import { AuthService } from 'angular-social-login'\r\n\r\n    constructor( private autuService: AuthService) {}\r\n\r\n    signOut(){\r\n      this.authService.signOut();\r\n    }\r\n\r\n\r\nThat's it, that's all mentioned in docs for this  package.\r\n\r\nFor login I do \r\n\r\n\r\n     this.authservice.authstate.subscribe((user:any) => {\r\n\r\n    console.log(user);\r\n\r\n});\r\n\r\nI sure, subscribe while logging in, but when I use authService.authState, there is no unsubscribe method."}}
{"actor":{"display_login":"rahulswimmer"}}