Skip to content

Commit

Permalink
fix: add-credential-arguments-to-aws-ses-emailHelpers (#54)
Browse files Browse the repository at this point in the history
* fix: add-credential-arguments-to-aws-ses-emailHelpers

* Update Jenkinsfile

* Update Jenkinsfile

Co-authored-by: KikiPang <[email protected]>
  • Loading branch information
jennawan and ki-ki-316 authored Jul 29, 2022
1 parent db91849 commit 0331f5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/auth/emailHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { SESClient, SendEmailCommand } from "@aws-sdk/client-ses";
// Create SES service object.
const sesClient = new SESClient({
region: process.env.REGION,
// credentials: {
// accessKeyId: process.env.accessKeyId,
// secretAccessKey: process.env.secretAccessKey,
// },
credentials: {
accessKeyId: process.env.accessKeyId,
secretAccessKey: process.env.secretAccessKey,
},
});

export const sendEmail = async (email, otp) => {
Expand Down

0 comments on commit 0331f5f

Please sign in to comment.