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

A cross-platform unofficial Google Assistant Client for Desktop (powered by Google Assistant SDK)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

1999shaswat opened this issue Β· 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.