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

Only email auth #13

Merged
merged 58 commits into from
Dec 22, 2023
Merged

Only email auth #13

merged 58 commits into from
Dec 22, 2023

Conversation

mozharov
Copy link
Contributor

No description provided.

mrkeksz added 30 commits November 9, 2023 15:36
The configuration setup for TypeOrmModule and GraphqlModule has been refactored for improved readability and maintenance. This mainly involves moving some config definitions into separate functions. Additionally, the bootstrap process in the main.ts file has been broken down into separate functions for better error handling and readability.
Refactor ValidationException and add test files

For the detailed explanation:
Reorganized the ValidationException message creation by splitting it into smaller, more manageable functions. New tests have been written for GraphqlComplexityLimitException and ValidationException classes to verify their instantiation and error handling characteristics.
mrkeksz added 27 commits December 11, 2023 03:51
Added a new decorator 'ClientIp' to get Client IP from the request context. This enhances security and access control in the app. Concurrently, unnecessary assertions were removed from 'AuthConfigService' tests, streamlining the testing process.
Modified 'getOrCreateUserByEmail' method in users.service.ts to not always create a new user, instead it first checks if a user with the given email address already exists. Added 'createUserByEmail' and 'createUser' methods for better functionality. Updated corresponding tests in users.service.spec.ts to reflect these changes.
The commit removes the entire verification-codes module from the project, including services, decorators, entities, and test files. These changes possibly indicate a refactor or restructuring of the way the project handles verification codes or it might imply that this functionality has been moved elsewhere in the codebase.
The commit involves the removal of several code files related to email authorization, verification codes, login attempts. This includes guards, strategies, DTOs, entities, services, and testing modules related to email authentication and login attempts. These actions suggest a significant refactor or change in the approach to managing authorization and login attempts.
…ervice' to limit the number of email verification sending attempts on the application. This is achieved using both the service and test suites for accurately tracking and enforcing such limits. In addition, the configurations were updated to separate max sending and input attempts for email verification codes, enabling more granular control.
@mozharov mozharov self-assigned this Dec 22, 2023
@mozharov mozharov merged commit 26294a1 into main Dec 22, 2023
1 check passed
@mozharov mozharov deleted the only-email-auth branch December 22, 2023 21:09
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.

1 participant