When integrating different systems, you might consider secured them via Azure AD authentication. However, if you are outside the context of Office 365, then you will need to generate a token somehow. In this blog, we show how to configure your Azure AD applications, and how to generate the needed token to make the REST calls.
https://www.linkedin.com/pulse/using-adaljs-authenticate-against-your-azure-secured-native-iliev