Alternatively, you can use a library wrapper that utilizes keycloak-js for your preferred client framework. For instance, Flutter offers a library that wraps the JavaScript adapter, known as keycloak_flutter. Additionally, Keycloak supports hybrid mobile apps developed with Apache Cordova.  

Refresh Access Token Flow

Here is a diagram that explains the flow every client must follow. This process is required every hour to refresh the access token.