Skip to content

Enhance onboarding flow and improve user authentication handling#1591

Merged
cannarocks merged 19 commits into
masterfrom
develop
Apr 20, 2026
Merged

Enhance onboarding flow and improve user authentication handling#1591
cannarocks merged 19 commits into
masterfrom
develop

Conversation

@cannarocks
Copy link
Copy Markdown
Member

This pull request introduces several improvements and fixes to the authentication flows, user onboarding, and password management, as well as some UI/UX enhancements for password reset and logout. The main themes are: enhanced password and onboarding logic for invited users, improved logout handling, additional user fields for invitations, and better localization and navigation for password reset flows.

Authentication & Onboarding Enhancements

  • Refactored the invited user onboarding flow in SetPasswordForm to use the permanent password for login and then require a password change if needed. This also adds support for the new changePassword method in the authentication context, ensuring a smoother onboarding for invited users. [1] [2] [3]
  • Added invitation_token to the User type and API schema, supporting invitation-based onboarding and tracking. [1] [2]

Logout Flow Improvements

  • Centralized and improved logout logic by moving the full logout process (including Cognito and legacy WP logout, and cache reset) to the /logout route, simplifying the profile modal's logout action. [1] [2] [3] [4]

Password Management & Auth Context

  • Added a changePassword method to the authentication context and implemented its usage, enabling users to change their password after onboarding or as needed. [1] [2] [3] [4]
  • Improved detection of sign-up confirmation requirements and exposed this state in the login result, enhancing the handling of users who have not confirmed their email. [1] [2]

Password Reset & Navigation UX

  • Enhanced the forgot password flow to support navigation back to either the profile or login page, depending on the origin, and added corresponding localized strings for these actions. [1] [2] [3] [4] [5] [6] [7] [8]

Testing & Miscellaneous

  • Set NODE_ENV to test in the Playwright configuration to ensure the correct environment during tests.
  • Cleaned up and improved error handling in the syncWordpress utility. [1] [2] [3]

These changes collectively improve the robustness, user experience, and maintainability of the authentication and onboarding flows.

iacopolea and others added 19 commits April 9, 2026 15:18
fixes: VerticalDivider responsiveness and add 'Auto' option in CreateVideoTasksWithAI
…ing input props and enhancing button disabling logic
…oarding

Add invitation token to User type and update onboarding logic
…rameters are preserved after password change
@cannarocks cannarocks merged commit 9c355de into master Apr 20, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants