I have a non interactive application that is going to use a google drive to store media, since the google access token expires, how the interactive application can refresh the token without the need to login?
Have you tried this? Auth0
If your non interactive client application is some type of backend service that will do those Google drive operations on behalf of an end-user of your application and that end-user has authenticated through Google then you should be able to do the following:
- ensure that you configure Google authentication in such way that a refresh token is issued as part of the user authentication flow (for Google this implies passing an
access_type=offline
when starting the authentication process). - obtain the refresh token (using the method described here) and then perform the access token renewal directly with Google.
The above process should allow your service to get renewed access tokens to perform the operations necessary in association with a particular end-user.