diff --git a/content/techniques/cookies.md b/content/techniques/cookies.md index 8d203c6e5a..abed4faef8 100644 --- a/content/techniques/cookies.md +++ b/content/techniques/cookies.md @@ -71,7 +71,7 @@ const app = await NestFactory.create( AppModule, new FastifyAdapter(), ); -await app.register(fastifyCookie, { +await app.register(() => fastifyCookie, { secret: 'my-secret', // for cookies signature }); ```