Skip to content

Commit

Permalink
Merge pull request #12233 from HGtronic/auth-service-docs-update
Browse files Browse the repository at this point in the history
docs: add missing types for username and password
  • Loading branch information
kamilmysliwiec authored Aug 16, 2023
2 parents 70e5b19 + 19464b4 commit 911fd7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sample/19-auth-jwt/src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class AuthService {
private jwtService: JwtService,
) {}

async signIn(username, pass) {
async signIn(username: string, pass: string) {
const user = await this.usersService.findOne(username);
if (user?.password !== pass) {
throw new UnauthorizedException();
Expand Down

0 comments on commit 911fd7b

Please sign in to comment.