-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
invalid_grant issue #73
Comments
Hello, |
Not sure what that means sorry, is it mentioned anywhere in the documentation? |
Yes. Please try this: https://github.com/levz0r/gmail-tester#refresh_access_tokencredentials_json-token_path |
Still not sure how to use it. All it says in that readme is this: From that I don't understand how to actually refresh a token, there's no code example, or anything. |
following |
same issue now also. I have built in the refresh token as a task:
but it doesn't get a new token / generate a new file. |
Same issue, I setup the credentials, and after about a week or so I get the message "invalid_grant", even though the expiration date is far away in the future. |
TO fix this i had to:
|
That doesn't really fix the problem, in 7 days you will get invalid_grant again. Still hoping someone is able to come up with a permanent solution. |
It would be a great solution to authenticate via Google Service Account @levz0r |
Hey, has anyone found a solution for that? Would the current implementation be able to use a Google Service Account? |
NOPE |
+1 |
It looks like its working fine, on cypress.config.js I have: on test: and expirydate (...."expiry_date":1665564390017}) is refreshed every time the task is launched. |
It works fine for a week, then the token can't be refreshed anymore, returning this invalid_grant error To elaborate on this, we can't refresh the token after a week because the OAuth consent screen managed in the Google cloud console is in testing mode. If we switch it to production mode, then the token could be refreshed indefinitely, but then the problem is that we can't use the authorization url generated by the init.js script in production mode anymore since october 3rd: |
Any progress? Can we expect some solution to that problem? :) |
Any updates here? If the token can not be refreshed programatically, the use of the module is very limited. |
It is big limitation in did, it forced me to switch to mail.tm |
@levz0r any help from your side to resolve this? |
Hi,
I've had the gmail-tester plugin work for a couple of days after setting it up, but then every few days it breaks with this error:
CypressError:
cy.task('gmail:check')
failed with the following error:Anyone have any idea what could be going wrong here? I really need this to work consistently.
The text was updated successfully, but these errors were encountered: