Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract JWT configuration #1405

Merged
merged 2 commits into from
Apr 16, 2024
Merged

Extract JWT configuration #1405

merged 2 commits into from
Apr 16, 2024

Conversation

fmrsabino
Copy link
Collaborator

  • Extracts the JWT configuration out of the root configuration object into its own configuration object.
  • This means that if validation is added to the respective properties, the variables won't be required to be set if the module is not enabled.

- Extracts the JWT configuration out of the root configuration object into its own configuration object.
- This means that if validation is added to the respective properties, the variables won't be required to be set if the module is not enabled.
@fmrsabino fmrsabino self-assigned this Apr 15, 2024
@fmrsabino fmrsabino requested a review from a team as a code owner April 15, 2024 21:30
@coveralls
Copy link

coveralls commented Apr 15, 2024

Pull Request Test Coverage Report for Build 8702814313

Details

  • 15 of 16 (93.75%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 93.09%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/datasources/jwt/configuration/jwt.configuration.ts 2 3 66.67%
Totals Coverage Status
Change from base Build 8691921596: 0.01%
Covered Lines: 6791
Relevant Lines: 7045

💛 - Coveralls

import { registerAs } from '@nestjs/config';
import { faker } from '@faker-js/faker';

export default registerAs('jwt', () => ({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: we could create an interface from the "actual" registerAs to ensure that the signature or the ReturnType is the same.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fmrsabino fmrsabino merged commit 1250696 into main Apr 16, 2024
16 checks passed
@fmrsabino fmrsabino deleted the extract-jwt-configuration branch April 16, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants