Skip to content

Commit fd16a0e

Browse files
Merge pull request #2469 from atomicpages/patch-1
docs(session): update fastify secure session import
2 parents 70f5d2e + b63ccbd commit fd16a0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/techniques/sessions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ findAll(@Session() session: Record<string, any>) {
6464
First install the required package:
6565

6666
```shell
67-
$ npm i fastify-secure-session
67+
$ npm i @fastify/secure-session
6868
```
6969

7070
Once the installation is complete, register the `fastify-secure-session` plugin:
7171

7272
```typescript
73-
import secureSession from 'fastify-secure-session';
73+
import secureSession from '@fastify/secure-session';
7474

7575
// somewhere in your initialization file
7676
const app = await NestFactory.create<NestFastifyApplication>(
@@ -107,4 +107,4 @@ findAll(@Session() session: secureSession.Session) {
107107
}
108108
```
109109

110-
> info **Hint** The `@Session()` decorator is imported from the `@nestjs/common`, while `secureSession.Session` from the `fastify-secure-session` package (import statement: `import * as secureSession from 'fastify-secure-session'`).
110+
> info **Hint** The `@Session()` decorator is imported from the `@nestjs/common`, while `secureSession.Session` from the `@fastify/secure-session` package (import statement: `import * as secureSession from '@fastify/secure-session'`).

0 commit comments

Comments
 (0)