gmail-tester
gmail-tester copied to clipboard
Object instead of string
Since those credential files can't be included on CI, can parameters for checkInbox(), instead of string(file path) be object with secret properties?
Can you please elaborate what kind of object is it?
All the properties that needed as secrets for CI { "client_id": "", "project_id": "", "auth_uri": "", "token_uri": "", "client_secret": "", "access_token": "" }
Because those secrets need to be in .gitignore, and when including path and run tests on some CI tool it complaints on missing file const email = await gmail.check_inbox( path.resolve(__dirname, 'credentials.json'), path.resolve(__dirname, 'gmail_token.json'), {include_body: true}, from, to, subject, before, after );
This would be huge for me. I'm having to write the credentials to a file temporarily just to read them for this package instead of just passing a string.
I believe most of this work is done here https://github.com/levz0r/gmail-tester/pull/52