What is the best way to override add-on apps functionalities?

I want to include a custom hook in SSO/SAML auth app. Instead of editing the code, I’d like to make a separate app to achieve that. Is there a best way to do that?

Ask the app developer on github.