@xenterprises/fastify-xconfig 0.0.4 → 0.0.5

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.4",
4
+ "version": "0.0.5",
5
5
  "description": "Fastify configuration plugin for setting up middleware, services, and route handling.",
6
6
  "main": "src/xConfig.js",
7
7
  "scripts": {
@@ -218,7 +218,7 @@ export async function setupAuth(fastify, options) {
218
218
  const accessToken = await reply.userJwtSign({ id: user.id });
219
219
 
220
220
  // Generate new refresh token
221
- const newRefreshToken = randomUUID();
221
+ const newRefreshToken = fastify.randomUUID();
222
222
  const hashedNewRefreshToken = await bcrypt.hash(newRefreshToken, 10);
223
223
 
224
224
  // Update refresh token in the database