App-only access authentication flow Azure Graph

Hello.
What would you typically use (plugins + auth flow) for ionic-angular-capacitor-android project to authenticate
through Azure to use Grapth API for an Android application which should have an access to Microsoft list without user interaction for authorization (use a client credentials flow ? - App-only access)
Is the MSAL plugin for capacitor the correct approach , or raw http request to get a token ?
Had few attempts with @capacitor-community/http and got a CORS error.
N.B.: I am aware of the security risks - the app is only for use in a controlled environment.