-
-
Notifications
You must be signed in to change notification settings - Fork 69
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It generates token with life duration = 1 hour #50
Comments
According to this, it looks like the access token is now expiring after one hour. I'll expose a function to refresh the access token in the coming days. Thank you for bringing this to my attention. |
@levz0r |
Yes. I've just pushed a function |
@levz0r |
After creating token.json with init function you get an access token which is valid for one hour. You should basically check how old is your token (there is a field in token.json which has timestamp) and if it is older than one hour, you should call the refresh_access_token function which will extend it's validity by one more hour. |
Hey @levz0r , thanks for the branch. Will you be merging this any time soon? |
Can you guys please confirm the new method solves the issue? |
Hi @levz0r and thanks for the tool, it works perfectly fine with Cypress The refresh_token seems to be working for me. I would love to see that in |
I've created "Credentials.json" file as per instructions.
Then I am running the command to generate Token:
node ..\..\node_modules\gmail-tester\init.js .\credentials.json gmail_token.json [email protected]
It successfully creates Token, BUT it's life time is just 1 hour.
How extend token life time (to at least half of the year)?
The text was updated successfully, but these errors were encountered: