-
Notifications
You must be signed in to change notification settings - Fork 560
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
Adding mfa-screen #9633
base: develop
Are you sure you want to change the base?
Adding mfa-screen #9633
Conversation
WalkthroughThe pull request introduces a new authentication route and component for Multi-Factor Authentication (MFA) in the application. A new route Changes
Assessment against linked issues
Suggested Labels
Suggested Reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
❌ Deploy Preview for care-ohc failed.
|
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.
Actionable comments posted: 4
🧹 Nitpick comments (1)
src/components/Auth/Authenicate.tsx (1)
14-250
: Naming and readability
The boolean staterecoveryModal
toggles between two modes in the same component rather than opening a modal. Consider renaming it to something likeuseRecoveryCode
or refactoring to separate the forms to reduce confusion and increase readability.-const [recoveryModal, setRecoveryModal] = useState(false); +const [useRecoveryCode, setUseRecoveryCode] = useState(false); ... if (way === "Use a recovery code") { - setRecoveryModal(true); + setUseRecoveryCode(true); }🧰 Tools
🪛 Biome (1.9.4)
[error] 69-69: Avoid passing content using the dangerouslySetInnerHTML prop.
Setting content using code can expose users to cross-site scripting (XSS) attacks
(lint/security/noDangerouslySetInnerHtml)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
src/Routers/SessionRouter.tsx
(2 hunks)src/components/Auth/Authenicate.tsx
(1 hunks)
🧰 Additional context used
🪛 Biome (1.9.4)
src/components/Auth/Authenicate.tsx
[error] 69-69: Avoid passing content using the dangerouslySetInnerHTML prop.
Setting content using code can expose users to cross-site scripting (XSS) attacks
(lint/security/noDangerouslySetInnerHtml)
🔇 Additional comments (1)
src/Routers/SessionRouter.tsx (1)
72-72
: New route addition
The addition of "/authenticate": () => <Authenticate />
is straightforward. Ensure that any library or custom hooks requiring authentication state updates are properly integrated if the user’s session or tokens need to be updated prior to or after rendering this page.
This should also include the user pages right 🤔 |
@bodhish Im not sure regarding that . But still is draft PR as backend was not ready for MFA |
👋 Hi, @AnveshNalimela, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
@AnveshNalimela what is the status on this PR |
we can reopen this once backend is ready |
Here is the ohcnetwork/care#2830 backend PR, you can start wiring the API's. There will not be any major changes. Also, have a look at the design on user profile page where we keep these settings - https://www.figma.com/design/Z93EYKSa1MdBmXndsMBJSQ/Care?node-id=4785-4837&p=f&t=PuUQGBYFlMTytATd-0 and start working on this as well. |
Proposed Changes
@ohcnetwork/care-fe-code-reviewers
Merge Checklist
Summary by CodeRabbit
New Features
Documentation