
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@bztes/strapi-provider-email-gmail-api
Advanced tools
Strapi email provider for Gmail using googleapi and OAuth 2.0
Yet another Strapi email provider for Gmail using OAuth 2.0 ;)
Please note that Strapi can't handle scoped provider packages. Therefor it's required to install this package with a different alias.
npm i --save strapi-provider-email-gmail-api@npm:@bztes/strapi-provider-email-gmail-api
The package.json
should then look something like this:
"dependencies": {
// ...
"strapi-provider-email-gmail-api": "npm:@bztes/strapi-provider-email-gmail-api@1.0.0",
// ...
}
Enable the Gmail API with OAuth authentication in 5 steps
Variable | Type | Description | Required | Default |
---|---|---|---|---|
provider | string | The name of this provider 'google' | yes | |
providerOptions | object | Provider options | yes | |
providerOptions.auth.userId | string | The mail address of the Google account to send e-mails from | yes | |
providerOptions.auth.clientId | string | OAuth 2.0 Client ID | yes | |
providerOptions.auth.clientSecret | string | OAuth 2.0 Client Secret | yes | |
providerOptions.auth.refreshToken | string | OAuth 2.0 Refresh Token | yes | |
settings | object | Settings | yes | |
settings.defaultFrom | string | Default sender mail address | no | |
settings.defaultReplyTo | string | The receiver is asked to reply to | no |
config/plugins.js
module.exports = ({ env }) => ({
// ...
email: {
provider: 'gmail-api',
providerOptions: {
auth: {
userId: 'mail@example.com',
clientId: '123....321.apps.googleusercontent.com',
clientSecret: 'ABC123...',
refreshToken: '1//123XYZ...',
},
},
settings: {
defaultFrom: 'Example Inc. <no-reply@example.com>',
defaultReplyTo: 'Example Inc. <mail@example.com>',
},
},
// ...
});
FAQs
Strapi email provider for Gmail using googleapi and OAuth 2.0
The npm package @bztes/strapi-provider-email-gmail-api receives a total of 51 weekly downloads. As such, @bztes/strapi-provider-email-gmail-api popularity was classified as not popular.
We found that @bztes/strapi-provider-email-gmail-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.