diff --git a/content/techniques/cookies.md b/content/techniques/cookies.md index abed4faef8..8a1d9f2c38 100644 --- a/content/techniques/cookies.md +++ b/content/techniques/cookies.md @@ -71,9 +71,7 @@ const app = await NestFactory.create( AppModule, new FastifyAdapter(), ); -await app.register(() => fastifyCookie, { - secret: 'my-secret', // for cookies signature -}); +await app.register(fastifyCookie); ``` With this in place, you can now read cookies from within the route handlers, as follows: