Login with B2C for Native Application

We have an application with both web browser based and mobile native application.
To automate the browser based application for desktops, we use cypress and we use client credentials approach to authenticate the B2C login.

Can I do the same via Appium + Selneium Java for the native application - so that as soon as the application is launched, it is already authenticated with the JWT token/key sourced from client credentials API?