Where should I add the handlers for the following hooks?


#1

Hi,
Where should I add the handlers for the following hooks?

Accounts.onLogin
Accounts.onCreateUser
Accounts.onLogout

Only server, only client, both ?


#2

Accounts.onCreateUser is a server only method. Accounts.onLogin and Accounts.onLogout can be added on either client or server, depending on where you need to run the code to handle these events.