Hello,
we are using Keycloak for authentication for both our website and mobile app. To ensure security we enabled only authorization code flow for the clients that we are using in our websites/mobile apps
Now for our mobile app, we want to avoid user from logging in everyday (since we setup session max lifetime to 12 hrs) and keep him logged in for 30 days. For this, using offline session seems to be the working, where the thought was we can generate an offline token and store it as part of mobile local storage and allow user access the app from the access token generated using the offline token
But we are unable to find a way to generate offline token using auth code flow, all examples lead to direct access grant flow. Can anyone suggest if this is possible to do, if not what is the right way to handle this case.
Appreciate your help.
-Karthik