Skip to content

Commit

Permalink
feat: updated with jwt config
Browse files Browse the repository at this point in the history
  • Loading branch information
aniebietafia committed Sep 3, 2024
1 parent 71da612 commit 4fae9ac
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions brints-estate-api/src/config/config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ export class AppConfigService {
app: {
port: this.configService.get<number>('APP_PORT') as number,
},
jwt: {
secret: this.configService.get<string>('JWT_SECRET') as string,
expiresIn: this.configService.get<number>(
'JWT_ACCESS_TOKEN_TTL',
) as number,
audience: this.configService.get<string>(
'JWT_TOKEN_AUDIENCE',
) as string,
issuer: this.configService.get<string>('JWT_TOKEN_ISSUER') as string,
},
};
}
}

0 comments on commit 4fae9ac

Please sign in to comment.