@xenterprises/fastify-xconfig 1.1.2 → 1.1.4

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": "1.1.2",
4
+ "version": "1.1.4",
5
5
  "description": "Fastify configuration plugin for setting up middleware, services, and route handling.",
6
6
  "main": "src/xConfig.js",
7
7
  "scripts": {
@@ -1,5 +1,4 @@
1
1
  import * as jose from "jose";
2
- import fetch from "node-fetch";
3
2
 
4
3
  export async function setupAuth(fastify, options) {
5
4
  if (options.user?.active !== false) {
@@ -108,7 +107,7 @@ export async function setupAuth(fastify, options) {
108
107
  return reply.code(400).send({ error: "Email and password required" });
109
108
  }
110
109
 
111
- // Call Stack Auth API for password sign-in
110
+ // Call Stack Auth API for password sign-in using native fetch
112
111
  const response = await fetch(
113
112
  `${stackAuthBaseUrl}/auth/password/sign-in`,
114
113
  {
package/src/xConfig.js CHANGED
@@ -40,7 +40,6 @@ import xEcho from "./utils/xEcho.js";
40
40
  import { setupHealth } from "./utils/health.js";
41
41
  import xSlugify from "./utils/xSlugify.js";
42
42
  import xUUID from "./utils/xUUID.js";
43
- import { setupCookie } from "./utils/cookie.js";
44
43
 
45
44
  async function xConfig(fastify, options) {
46
45
  const {