feat: Add 'Expertise' profile section to seed data, extend JWT token expiration times, and allow agents to retrieve profile sections by type.

This commit is contained in:
pradeepkumar
2026-01-24 20:36:21 +05:30
parent 7d7eb1ac31
commit 8dc8a961ab
3 changed files with 30 additions and 4 deletions

View File

@@ -17,8 +17,8 @@ export default () => ({
// JWT Authentication
jwt: {
secret: process.env.JWT_SECRET || 'super-secret-key',
accessExpiration: process.env.JWT_ACCESS_EXPIRATION || '15m',
refreshExpiration: process.env.JWT_REFRESH_EXPIRATION || '7d',
accessExpiration: process.env.JWT_ACCESS_EXPIRATION || '2h',
refreshExpiration: process.env.JWT_REFRESH_EXPIRATION || '30d',
},
// Password Hashing

View File

@@ -111,9 +111,9 @@ export class ProfileSectionsController {
@Get('agent-type/:agentTypeId')
@UseGuards(JwtAuthGuard, RolesGuard)
@Roles(UserRole.ADMIN)
@Roles(UserRole.ADMIN, UserRole.AGENT)
@ApiBearerAuth()
@ApiOperation({ summary: 'Get all sections for an agent type with ordering (Admin only)' })
@ApiOperation({ summary: 'Get all sections for an agent type with ordering' })
@ApiQuery({ name: 'includeFields', required: false, type: Boolean })
getSectionsForAgentType(
@Param('agentTypeId', ParseUUIDPipe) agentTypeId: string,