Custom login button, change text and logout?

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?

Would this work?

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

ah currentUser tyvm :sunglasses: