return new Promise<void>((resolve, reject) => { Meteor.logout((e: Error) => { if (e) { return reject(e); } resolve(); }); });
login(){ var slf = this; Meteor.logout(); Meteor.loginWithGoogle(function(res){ // Handle Login Success if(!res){ slf.router.navigate(['account',Meteor.user()._id]); } else{ //TODO Login Error } }); }
login(){ var slf = this; Meteor.logout(); var showDialog = function() { slf.errorDialog.show(); } Meteor.loginWithGoogle(function(res){ // Handle Login Success if(!res){ if(typeof slf.redirect === "undefined" || slf.redirect === null || slf.redirect === "undefined"){ slf.router.navigate(['account',Meteor.user()._id]); } else{ slf.router.navigate([slf.redirect]); } } else{ showDialog(); } }); }
logout(){ Meteor.logout(); }
this.autorun(() => { Meteor.logout(); });
tuxLogout() { Meteor.logout(); this.router.navigate(['/']); }
logout():void { Meteor.logout(); this.isDropdownOpen = false; }
export function logout() { Meteor.logout(); }