Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃悰 Bug]: Token needs manual refresh in about an hour everytime. #910

Open
3 tasks done
1999shaswat opened this issue Aug 23, 2023 · 2 comments
Open
3 tasks done
Assignees
Labels
馃悰 bug Something isn't working

Comments

@1999shaswat
Copy link

1999shaswat commented Aug 23, 2023

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 1999shaswat added the 馃悰 bug Something isn't working label Aug 23, 2023
@1999shaswat 1999shaswat changed the title [馃悰 Bug]: Token expires in about an hour everytime. [馃悰 Bug]: Token needs manual refresh in about an hour everytime. Aug 23, 2023
@sumeshir26
Copy link
Contributor

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

@1999shaswat
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃悰 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants