Keeping Azure AD login always active using Refresh Token?

Hi - I am developing an Ionic app that uses MS ADAL to validate Azure Active Directory users. The issue I am facing is that the login expires (bearer token) after 24 hours. I am trying to use the Refresh Token to keep the session always active but am not able to find a solution for it. There are plugins like AuthConnect but pretty pricey. Wanted to check if you know of any solution using Refresh Token to keep the login session always active? Please let me know. Thanks.