cambios en el refresh token
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// auth.controllers
|
||||
import { Public } from '@/common/decorators';
|
||||
import { JwtRefreshGuard } from '@/common/guards/jwt-refresh.guard';
|
||||
import { RefreshTokenDto } from '@/features/auth/dto/refresh-token.dto';
|
||||
@@ -51,7 +52,7 @@ export class AuthController {
|
||||
// return { message: 'Password reset link sent to your email' };
|
||||
// }
|
||||
|
||||
@UseGuards(JwtRefreshGuard)
|
||||
// @UseGuards(JwtRefreshGuard)
|
||||
@Public()
|
||||
@HttpCode(200)
|
||||
@Patch('refresh')
|
||||
@@ -63,7 +64,7 @@ export class AuthController {
|
||||
// console.log("refreshTokenDto",refreshTokenDto);
|
||||
// console.log(typeof refreshTokenDto);
|
||||
|
||||
const data = await this.authService.refreshToken(refreshTokenDto,req['user'].sub);
|
||||
const data = await this.authService.refreshToken(refreshTokenDto);
|
||||
// console.log("data",data);
|
||||
|
||||
if (!data) {
|
||||
|
||||
Reference in New Issue
Block a user