Skip to content

Commit

Permalink
Merge pull request #2266 from cpotdevin/await-fastify-plugin-registra…
Browse files Browse the repository at this point in the history
…tion

docs: fastify plugin registration should be awaited
  • Loading branch information
kamilmysliwiec committed Apr 5, 2022
2 parents 9fa9351 + 60beaa6 commit 04b2a8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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(),
);
app.register(fastifyCookie, {
await app.register(fastifyCookie, {
secret: 'my-secret', // for cookies signature
});
```
Expand Down
2 changes: 1 addition & 1 deletion content/techniques/sessions.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const app = await NestFactory.create<NestFastifyApplication>(
AppModule,
new FastifyAdapter(),
);
app.register(secureSession, {
await app.register(secureSession, {
secret: 'averylogphrasebiggerthanthirtytwochars',
salt: 'mq9hDxBVDbspDR6n',
});
Expand Down

0 comments on commit 04b2a8a

Please sign in to comment.