Skip to content

Commit

Permalink
Feat: send certification code SMS (#83)
Browse files Browse the repository at this point in the history
* feat: install crypto-js and axios

* feat: send certificationCode
  • Loading branch information
raipen authored Nov 3, 2023
1 parent 47a68f8 commit 41972d4
Show file tree
Hide file tree
Showing 5 changed files with 255 additions and 4 deletions.
188 changes: 188 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
"@sentry/node": "^7.73.0",
"@sentry/profiling-node": "^1.2.1",
"@types/jsonwebtoken": "^9.0.2",
"axios": "^1.6.0",
"crypto": "^1.0.1",
"crypto-js": "^4.2.0",
"dotenv": "^16.3.1",
"fastify": "^4.19.1",
"fastify-plugin": "^4.5.0",
Expand All @@ -33,6 +36,7 @@
},
"devDependencies": {
"@jest/globals": "^29.6.0",
"@types/crypto-js": "^4.1.3",
"@types/node": "^20.3.3",
"jest": "^29.6.0",
"nodemon": "^2.0.22",
Expand Down
6 changes: 5 additions & 1 deletion src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ class Config{

static of(): Config {
if (!Config.instance) {
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
config();
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
Config.instance = new Config();
}
return Config.instance;
Expand All @@ -20,6 +20,10 @@ class Config{
salt: process.env.SALT || 'salt',
sentryDSN: process.env.SENTRY_DSN || '',
nodeEnv: process.env.NODE_ENV,
NCP_SENS_SECRET: process.env.NCP_SENS_SECRET || '',
NCP_SENS_ACCESS: process.env.NCP_SENS_ACCESS || '',
NCP_SENS_MY_NUMBER: process.env.NCP_SENS_MY_NUMBER || '',
NCP_SENS_ID: process.env.NCP_SENS_ID || '',
} as const;
}

Expand Down
Loading

0 comments on commit 41972d4

Please sign in to comment.