@xenterprises/fastify-xconfig 0.0.8 → 0.0.10

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xenterprises/fastify-xconfig",
3
3
  "type": "module",
4
- "version": "0.0.8",
4
+ "version": "0.0.10",
5
5
  "description": "Fastify configuration plugin for setting up middleware, services, and route handling.",
6
6
  "main": "src/xConfig.js",
7
7
  "scripts": {
@@ -23,6 +23,8 @@ export async function setupAuth(fastify, options) {
23
23
  "/portal/auth/login",
24
24
  "/portal/auth/logout",
25
25
  "/portal/auth/register",
26
+ "/portal/auth/forgot-password",
27
+ "/portal/auth/reset-password"
26
28
  ];
27
29
 
28
30
  // Register JWT for user
@@ -13,11 +13,11 @@ export async function setupSendgrid(fastify, options) {
13
13
  try {
14
14
 
15
15
  const msg = {
16
- to,
16
+ to: to,
17
17
  from: options.fromEmail,
18
- subject,
19
- templateId,
20
- dynamicTemplateData: { ...dynamicTemplateData, ...subject },
18
+ subject: subject,
19
+ templateId: templateId,
20
+ dynamicTemplateData: { ...dynamicTemplateData, subject: subject },
21
21
  };
22
22
  await Sendgrid.send(msg);
23
23
  return true;