@konplit-services/common 1.0.267 → 1.0.268

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -250,6 +250,10 @@ declare class AppConfigs {
250
250
  refresh_in: string;
251
251
  access_in: string;
252
252
  };
253
+ getRSAKeys(): {
254
+ private: string;
255
+ public: string;
256
+ };
253
257
  getTransactionTokenAccessTime(): string;
254
258
  getAPIPrivateKey(): string;
255
259
  getEmailVendor(): string;
@@ -199,6 +199,18 @@ class AppConfigs {
199
199
  access_in: this.env.ACCESS_TOKEN_IN,
200
200
  };
201
201
  }
202
+ getRSAKeys() {
203
+ if (!this.env.PRIVATE_RSA_KEY) {
204
+ throw new Error("PRIVATE_RSA_KEY is required");
205
+ }
206
+ if (!this.env.PUBLIC_RSA_KEY) {
207
+ throw new Error("PUBLIC_RSA_KEY is required");
208
+ }
209
+ return {
210
+ private: this.env.PRIVATE_RSA_KEY,
211
+ public: this.env.PUBLIC_RSA_KEY,
212
+ };
213
+ }
202
214
  getTransactionTokenAccessTime() {
203
215
  if (!this.env.ACCESS_TRANSACTION_TOKEN_IN) {
204
216
  throw new Error("ACCESS_TRANSACTION_TOKEN_IN is required");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.267",
3
+ "version": "1.0.268",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",