Skip to content

Commit

Permalink
feat: update return login value for mobile user
Browse files Browse the repository at this point in the history
  • Loading branch information
ToniDarodda committed Aug 7, 2024
1 parent 860ed23 commit 431cfef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ async function bootstrap() {

app.use(
compression({
level: 6, // Adjust the compression level as needed
level: 6,
}),
);

app.useGlobalPipes(new ValidationPipe({ whitelist: true }));
app.useGlobalPipes(new ValidationPipe({ whitelist: true, transform: true }));
app.useGlobalFilters(new AllExceptionsFilter());

app.enableVersioning({
Expand Down
4 changes: 4 additions & 0 deletions src/modules/account/controller/account.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ export class AccountController {
httpOnly: true,
expires: new Date(Date.now() + parseInt(REFRESH_TOKEN_JWT_VALID, 10)),
});

return { access_token, refresh_token };
}

@Post('sign-up')
Expand Down Expand Up @@ -110,6 +112,8 @@ export class AccountController {
httpOnly: true,
expires: new Date(Date.now() + parseInt(REFRESH_TOKEN_JWT_VALID, 10)),
});

return { access_token, refresh_token };
}

@Get()
Expand Down

0 comments on commit 431cfef

Please sign in to comment.