Confluence cloud add on ....Development related inquiry

1.Can you deliver the event to add-on in the process of logging into the cloud?
For example, if I try to log in, can the app under development intercepts the event?
Is it provided with the same function as the servlet-filter in java?