Skip to content

Commit c206b7f

Browse files
authored
Update authentication.md
Removed duplicate instruction to inject a service which was listed in the previous section: "Don't forget to inject the JwtService provider into the `AuthService`."
1 parent 761c06c commit c206b7f

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)