Fix password-reset rate-limit UX & add robust email-confirm route#91
Merged
Conversation
…n route This commit simplifies the cookie domain management by directly using the request's origin instead of calculating the base domain from the redirect URL. This change enhances the clarity and reliability of cookie settings during the authentication process.
This commit introduces a check for a confirmation URL in the authentication confirmation process, allowing for direct redirection when provided. It also simplifies the OTP verification by removing unnecessary cookie handling, improving the overall clarity and efficiency of the authentication flow.
…mation route This commit introduces a check for different origins in the redirect logic, improving the handling of absolute URLs. It also adds logging for key parameters during the authentication confirmation process, enhancing visibility and debugging capabilities. Additionally, it refines the fallback mechanism for constructing redirect URLs, ensuring robustness in various scenarios.
…mation route This commit adds additional logging for various stages of the authentication confirmation process, including successful and error cases. It improves the handling of invalid parameters by logging specific details, and refines the logging of redirect URLs and errors during OTP verification, enhancing overall visibility and debugging capabilities.
…nfirmation route This commit modifies the origin check in the redirect logic by utilizing a new BASE_URL constant. This change enhances the clarity of the origin comparison, ensuring that the authentication confirmation process correctly handles different origins for redirect URLs.
…ation confirmation route This commit introduces a normalization function for the origin comparison in the redirect logic, ensuring consistent handling of different origins. This enhancement improves the accuracy of the origin check when processing redirect URLs, contributing to a more robust authentication flow.
|
@ben-fornefeld is attempting to deploy a commit to the E2B Team on Vercel. A member of the Team first needs to authorize it. |
mishushakov
approved these changes
Jul 6, 2025
c0a0dc0
into
e2b-dev:bug-handle-password-reset-rate-limit-error-message-e2b-2619
0 of 2 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR refactors our authentication flow to improve both user experience and security.
Key changes