Travis complains about this in every PR created after this was introduced..
Created AuthenticationHook class with two main methods: onLogin and onLogout that are called after login and before logout.