diff --git a/api/index.ts b/api/index.ts index 915ff6e..9eb005a 100644 --- a/api/index.ts +++ b/api/index.ts @@ -30,6 +30,7 @@ export const app = initializeApp({ }); +server.decorateRequest('user', '') server.addHook("preHandler", deserializeUser); server.register(require("fastify-stripe"), {