I have been working with OAuth2 User-Agent flow method of authentication for one of my Google APIs . Here is how I configured it -
Despite checking the access_type=offline option, I get an error about my token being expired. The APIs stop working after a day or two and the user doesn’t remain logged in forever. How to configure it so that it handles refresh tokens automatically?