-
Notifications
You must be signed in to change notification settings - Fork 20
Magic link #436
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
base: shiksha-user
Are you sure you want to change the base?
Magic link #436
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (7)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|
|
| hash = result.hash; | ||
| expires = result.expires; | ||
| sentTo = email; | ||
| } else if (whatsapp) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@apurvaubade we wont need this code here now. Please remove
| } | ||
|
|
||
| // Determine identifier type | ||
| let identifierType = 'username'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@apurvaubade here we are assuming that the user will either pass the username or mobile right? We can also ask him to pass the username. why this is hardcoded?
| const magicLink = this.magicLinkRepository.create({ | ||
| token, | ||
| identifier: requestDto.identifier, | ||
| identifier_type: identifierType, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@apurvaubade why are we storing identifier type?
| } | ||
| } | ||
|
|
||
| async cleanupExpiredLinks(): Promise<void> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@apurvaubade where this function is called?




No description provided.