Skip to content

Commit 5b23b5c

Browse files
Merge pull request #2998 from kunalrgarg/patch-1
Update authentication.md
2 parents 761c06c + c206b7f commit 5b23b5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/security/authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ export class AuthService {
272272
}
273273
```
274274

275-
We're using the `@nestjs/jwt` library, which supplies a `signAsync()` function to generate our JWT from a subset of the `user` object properties, which we then return as a simple object with a single `access_token` property. Note: we choose a property name of `sub` to hold our `userId` value to be consistent with JWT standards. Don't forget to inject the JwtService provider into the `AuthService`.
275+
We're using the `@nestjs/jwt` library, which supplies a `signAsync()` function to generate our JWT from a subset of the `user` object properties, which we then return as a simple object with a single `access_token` property. Note: we choose a property name of `sub` to hold our `userId` value to be consistent with JWT standards.
276276

277277
We now need to update the `AuthModule` to import the new dependencies and configure the `JwtModule`.
278278

0 commit comments

Comments
 (0)