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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Able to Login with Gmail #56

Closed
HrithikMittal opened this issue Feb 13, 2021 · 1 comment
Closed

Not Able to Login with Gmail #56

HrithikMittal opened this issue Feb 13, 2021 · 1 comment

Comments

@HrithikMittal
Copy link

Describe the bug

A clear and concise description of what the bug is.
I install the imapapi package and then try to start it with Gmail. But I try many things It is showing the following error.

{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "Invalid input",
  "fields": [
    {
      "message": "\"IMAP\" contains a conflict between exclusive peers [useAuthServer, Authentication]",
      "key": "imap"
    },
    {
      "message": "\"SMTP\" contains a conflict between exclusive peers [useAuthServer, Authentication]",
      "key": "smtp"
    }
  ]
}

and I try to register with these details:

{
  "account": "example",
  "name": "My Email Account",
  "copy": true,
  "notifyFrom": "2020-01-01",
  "imap": {
    "auth": {
      "user": "adhikanshmittal@gmail.com",
      "pass": "******"
    },
    "useAuthServer": true,
    "host": "imap.gmail.com",
    "port": 993,
    "secure": true
  },
  "smtp": {
     "auth": {
      "user": "adhikanshmittal@gmail.com",
      "pass": "******"
    },
    "useAuthServer": true,
    "host": "smtp.gmail.com",
    "port": 587,
    "secure": true
  }
}

I also try to pass the auth token which I generate from Google Gmail API but it was not working.

@andris9
Copy link
Collaborator

andris9 commented Feb 17, 2021

If you use username/password then you can't use useAuthServer option

@andris9 andris9 closed this as completed Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants