Skip to content

Commit b5676bf

Browse files
docs(auth): remove leftovers
1 parent 03d5c0e commit b5676bf

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

content/security/authentication.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ export class AuthService {
237237
if (user?.password !== pass) {
238238
throw new UnauthorizedException();
239239
}
240-
const { password, ...result } = user;
241240
const payload = { username: user.username, sub: user.userId };
242241
return {
243242
access_token: await this.jwtService.signAsync(payload),
@@ -262,7 +261,6 @@ export class AuthService {
262261
if (user?.password !== pass) {
263262
throw new UnauthorizedException();
264263
}
265-
const { password, ...result } = user;
266264
const payload = { username: user.username, sub: user.userId };
267265
return {
268266
access_token: await this.jwtService.signAsync(payload),

0 commit comments

Comments
 (0)