Skip to content

Created a new project on Google Console, Get the Credentials but the init process never ends #127

@rgrlaika

Description

@rgrlaika

I noticed that google apis deprecated the Out-Of-Band (OOB) which means that credentials created now does not have the urn:ietf:wg:oauth:2.0:oob it creates with "redirect_uris":["http://localhost/"]}}

Then I was trying to run the node node_modules/gmail-tester/init.js cypress/events/gmail/credentials.json cypress/events/gmail/gmail_token.json <account@gmail.com>

Note: the actual email has been omitted

Then it directly opened the page to grant the email and redirected to the : localhost asking to back to the terminal

Screenshot 2023-02-07 at 15 42 44

I back to the terminal but what I had was the prompt below forever:

[gmail] Checking for message from '', to: account@gmail.com, contains '' in subject...
Note: I never asks me to put a code in the terminal

I think it has something to do with the deprecation of Out-Of-Band (OOB)
https://developers.google.com/identity/protocols/oauth2/resources/oob-migration

I tried to use the latest version of gmail-tester and it does not work.

Indeed it creates the file gmail_token.json (in my case) but if I delete it, when running the tests it opens a new instance of the browser during the cypress test execution, and asks to grant the permission for the email again, hence a manual intervention needed.

Any idea if it's a known issue if it's a workaround?

I also noticed people complaining it here without any answers:

#73

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions