-
Notifications
You must be signed in to change notification settings - Fork 33
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
Undo file changes in analytics platform #2532
Conversation
📝 WalkthroughWalkthroughThis PR streamlines the authentication process. The Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant A as withAuth HOC
participant R as Router
U->>A: Request access to a protected page
A->>A: Check if user is authenticated
alt Authenticated
A-->>U: Render protected page
else Not Authenticated
A->>R: router.push('/account/login')
R-->>U: Redirect to login page
end
Possibly related PRs
Suggested reviewers
Poem
Tip CodeRabbit's docstrings feature is now available as part of our Pro Plan! Simply use the command Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (2)
🔇 Additional comments (4)
✨ Finishing Touches
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 (
|
New next-platform changes available for preview here |
This pull request includes several changes aimed at simplifying the authentication flow and removing unused code. The most important changes include removing Google authentication logic, simplifying the
withAuth
higher-order component, and updating theHome
component export.Improvements to authentication flow:
src/platform/src/core/utils/protectedRoute.js
: Removed Google authentication logic and related state management, and replaced it with a simplified authentication check using theLogoutUser
utility.Code cleanup:
src/platform/src/pages/account/login/index.jsx
: Removed thehandleGoogleLogin
function and the associated Google login button. [1] [2] [3] [4]Component export update:
src/platform/src/pages/Home/index.jsx
: Updated the export statement to directly usewithAuth
instead of dynamically importing it. [1] [2]Summary by CodeRabbit