feat: add logout functionality
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user