Skip to content

Commit

Permalink
Merge pull request #2848 from fedotarte/patch-1
Browse files Browse the repository at this point in the history
Updated cookies.md with register signature
  • Loading branch information
kamilmysliwiec authored Sep 11, 2023
2 parents 8b8a727 + 5fa11b1 commit 303fffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/techniques/cookies.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const app = await NestFactory.create<NestFastifyApplication>(
AppModule,
new FastifyAdapter(),
);
await app.register(fastifyCookie, {
await app.register(() => fastifyCookie, {
secret: 'my-secret', // for cookies signature
});
```
Expand Down

0 comments on commit 303fffa

Please sign in to comment.