gmail-tester
gmail-tester copied to clipboard
Activation link does not work properly
Hi All, I've been facing an issue when I run the node script that generates the activation link that needs to be followed to activate the link. Everything works fine until I reach the last step were I'm redirected to localhost and get a message "The site cannot be reached"
Anybody has faced the same/similar issue? Could the issue be due to the localhost in the link?
node ./node_modules/gmail-tester/init.js ./cypress/plugins/credentials.json ./cypress/plugins/token.json "[email protected]"
Authorize this app by visiting this url: https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&scope=xxxxxxxAUTHCODExxxxxxxx&redirect_uri=http%3A%2F%2Flocalhost
Same thing here.
After looking for solution, i see that the generated credentials.json file is a lil bit different now because we are missing a redirect_uris as you can see. I don't find a solution yet
Solution found :
When you access to the localhost, your url is like :
http://localhost/?code=4/0AdQt8qhH29BROVtV2-xxxxxxxxxxxxxxxxxxxxxc1vZdWGCjc9G_A&scope=https://www.googleapis.com/auth/gmail.readonly
Here, get the code in the url (between "code=" and "&scope" and copy past it in the code required in your terminal.
You gonna have the message "[gmail] Found!" and your token file is generated.
I had the same problem!
Maybe you could add this solution to the docs/README?
Thanks!
Upvote, pls, could you add end 2 end solution to the readme file? Much appreciated.
For me it just spams message not found...
Hello,
Please get the latest version and re-run init.js
.