-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Gmail Service Account dont want authenticate #2860
Comments
Hi, const credentials = require("./credentials.json") // File downloaded with the Service Account Keys
const getGmailAuth = async ()=>{
const auth = (new google.auth.JWT(
credentials.global.client_email,
null,
credentials.global.private_key,
GMAILSCOPES,
person
))
await (new Promise((resolve, reject) => {
auth.authorize((err, tokens) => {
if (err) {
reject(err);
} else {
resolve(tokens);
}
});
}))
return (auth);
} Good bye ! |
This was referenced Jan 12, 2022
Hi @NonozgYtb , I think I ran into a similar issue What is |
const person = "firstname.name@mydomain.com"; |
This was referenced Feb 10, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi everyone,
After several long hours, I still cannot use my service account for Gmail. I'm a Google Workspace customer, but whether it's through JWT, OAuth, or other things (some of which the current version no longer supports), nothing helps and I get just errors. I don't really know what to do to be able to access information (via an OAuth client for my account only its walking) on the gmail accounts of my members.
Can I have a (actual) solution ?
Thanks a lot.
PS: sorry for the text pad but it's late and I'm exhausted and quite frustrated with this problem
The text was updated successfully, but these errors were encountered: