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>
{{else}}
  <button>Log in</button>
{{/if}}
1 Like

ah currentUser tyvm :sunglasses: