Context:
SSO and access token lifespan decides when the token expires. If SSO is 60 minutes, and access token is 5 minutes, meaning: The token expires then get refreshed every 5 minutes, until the 60 minutes SSO lifespan has expires too. After 60 minutes, user is required to login again.
Problem:
The app auto logs out the user when access token can no longer refresh, meaning the SSO has expired too. This can happen when user is currently filling a Questionnaire with a patient, causing the data to be lost, and cost them time.
Solution:
Prevent auto logout on token expiry when Questionnaire is open, until user click submit, FHIR resources are extracted, and all resources are saved, and screen goes back to the previous screen.