Custom login button, change text and logout?


#1

I made a custom button that calls Meteor.loginWithTwitter(); on click. Once the user is signed in, i want to change the text on the button to something like “logout”. How would i do this?


#2

Would this work?

{{#if currentUser}}
  <button>Log out</button>
{{else}}
  <button>Log in</button>
{{/if}}

#3

ah currentUser tyvm :sunglasses: