Refactor AdminAuthController and AuthService to implement admin-specific token refresh functionality; update TokensService to handle refresh token logic with improved transaction management and error handling.

This commit is contained in:
2025-11-18 14:29:00 +03:30
parent 3fc7cccb80
commit a53c0a5b13
3 changed files with 54 additions and 4 deletions
@@ -53,6 +53,6 @@ export class AdminAuthController {
@ApiOperation({ summary: 'refresh the user access token / refresh token' })
@Post('refresh')
refreshToken(@Body() refreshTokenDto: RefreshTokenDto) {
return this.authService.refreshToken(refreshTokenDto.refreshToken);
return this.authService.refreshTokenAdmin(refreshTokenDto.refreshToken);
}
}