Skip to content

Commit 87ccf9b

Browse files
Merge pull request #2947 from MarkusLund/patch-1
docs(authentication): Add missing typescript types
2 parents d60bdbd + 905ddc6 commit 87ccf9b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

content/security/authentication.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,10 @@ export class AuthService {
232232
private jwtService: JwtService
233233
) {}
234234

235-
async signIn(username, pass) {
235+
async signIn(
236+
username: string,
237+
pass: string,
238+
): Promise<{ access_token: string }> {
236239
const user = await this.usersService.findOne(username);
237240
if (user?.password !== pass) {
238241
throw new UnauthorizedException();

0 commit comments

Comments
 (0)