Where should I add the handlers for the following hooks?

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

Accounts.onLogin
Accounts.onCreateUser
Accounts.onLogout

Only server, only client, both ?

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.

1 Like