Melvin-Abraham/Google-Assistant-Unofficial-Desktop-Client

[๐Ÿ› Bug]: Token needs manual refresh in about an hour everytime.

1999shaswat opened this issue ยท 2 comments

What went wrong?

After every 1 hour, I have to delete the token.json and the app fetches new access token. This is happening even after publishing the app.

What did you expect to happen?

I believe there is a way to get the new access token automatically, by using the refresh token and setting the token as offline.
I read here:
https://medium.com/@sacshaurov05/login-with-google-oauth-get-refresh-and-access-token-regenerate-access-token-on-your-react-app-101677118ac7
https://stackoverflow.com/questions/53379222/google-api-how-to-increase-access-token-expiration-date
https://stackoverflow.com/questions/70018460/how-to-change-the-expiration-time-of-a-google-access-token

Steps to reproduce the bug

Open the app after 1 hour of issuing new token.

App Version

v1.1.0

OS Version

Windows 11 Build 22621.2134

Relevant Assets

No response

Pre-submission Checklist

@1999shaswat Thanks for the suggestion.
@Melvin-Abraham Can this be implemented for the Google Assistant module?

@sumeshir26 I have updated the comment, can you please look through the new resource links? It looks quite promising.