-
Notifications
You must be signed in to change notification settings - Fork 11.7k
refactor: move auth components and hooks from packages/features to apps/web/modules #27223
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
Conversation
…ps/web/modules Co-Authored-By: benny@cal.com <sldisek783@gmail.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Co-Authored-By: benny@cal.com <sldisek783@gmail.com>
| vi.mock("@calcom/features/auth/Turnstile", () => ({ | ||
| default: ({ onVerify }: { onVerify: (token: string) => void }) => ( | ||
| <div data-testid="turnstile-captcha" onClick={() => onVerify("test-token")}> | ||
| Mock Captcha | ||
| </div> | ||
| ), | ||
| })); |
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.
Not consumed anywhere
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.
No issues found across 12 files
What does this PR do?
This PR is part of breaking down #26571 into smaller, reviewable PRs.
Moves auth-related components and hooks from
packages/features/auth/toapps/web/modules/auth/:Components moved:
SAMLLogin.tsx→apps/web/modules/auth/components/SAMLLogin.tsxTurnstile.tsx→apps/web/modules/auth/components/Turnstile.tsxHooks moved:
useLastUsed.tsx→apps/web/modules/auth/hooks/useLastUsed.tsxuseRedirectToLoginIfUnauthenticated.tsx→apps/web/modules/auth/hooks/useRedirectToLoginIfUnauthenticated.tsxuseRedirectToOnboardingIfNeeded.tsx→apps/web/modules/auth/hooks/useRedirectToOnboardingIfNeeded.tsxAll import paths in consuming files have been updated accordingly.
Mandatory Tasks (DO NOT REMOVE)