feat: add logout functionality

This commit is contained in:
2026-10-07 15:36:44 +03:30
parent f3fe1f55e4
commit 195eca1015
9 changed files with 99 additions and 12 deletions
+6 -2
View File
@@ -44,7 +44,11 @@ export class AuthService {
return await this.refreshTokensProvider.refreshTokens(refreshTokenDto);
}
public async logout(userId: number, logoutDto: LogoutDTO) {
return await this.logoutProvider.logout(userId, logoutDto);
public async logout(
userId: number,
logoutDto: LogoutDTO,
accessToken: string,
) {
return await this.logoutProvider.logout(userId, logoutDto, accessToken);
}
}