opnform-host-nginx/api
Chirag Chhatrala 2c746437c9
Re-login modal (#717)
* Implement quick login/register flow with global event handling

- Add QuickRegister component with improved modal management
- Integrate quick login/register with app store state
- Implement custom event handling for login/registration flow
- Update OAuth callback to support quick login in popup windows
- Refactor authentication-related components to use global events

* Refactor authentication flow with centralized useAuth composable

- Create new useAuth composable to centralize login, registration, and social login logic
- Simplify authentication methods in LoginForm and RegisterForm
- Add event-based login/registration flow with quick login support
- Remove redundant API calls and consolidate authentication processes
- Improve error handling and analytics tracking for authentication events

* Enhance QuickRegister and RegisterForm components with unauthorized error handling

- Add closeable functionality to modals based on unauthorized error state
- Implement logout button in QuickRegister for unauthorized users
- Reset unauthorized error state on component unmount
- Update styling for "OR" text in RegisterForm for consistency
- Set unauthorized error flag in app store upon 401 response in API calls

* Refactor Authentication Flow and Remove Unused Callback Views

- Deleted unused callback views for Notion and OAuth to streamline the codebase.
- Updated QuickRegister and LoginForm components to remove the after-login event emission, replacing it with a window message system for better communication between components.
- Enhanced the RegisterForm and other components to utilize the new window message system for handling login completion, improving reliability and maintainability.
- Added a verifyAuthentication method in the useAuth composable to ensure user data is loaded correctly after social logins, including retry logic for fetching user data.

These changes aim to simplify the authentication process and improve the overall user experience by ensuring a more robust handling of login events.

* Add eslint-disable comment to useWindowMessage composable for linting control

* Refactor QuickRegister.vue for improved template structure and clarity

- Adjusted the rendering of horizontal dividers and the "or" text for better semantic HTML.
- Added a compact-header prop to the modal for enhanced layout control.

These changes aim to enhance the readability and maintainability of the QuickRegister component.

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
2025-03-25 10:41:11 +01:00
..
app Decouple title from title block (#696) 2025-03-21 16:59:18 +01:00
bootstrap Refactor Docker configuration and development setup 2025-01-29 17:19:36 +01:00
config Enhance JWT Token Management and Authentication Flow (#720) 2025-03-10 17:32:17 +08:00
database Decouple title from title block (#696) 2025-03-21 16:59:18 +01:00
public Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
resources Re-login modal (#717) 2025-03-25 10:41:11 +01:00
routes Add workspace update functionality (#699) 2025-02-12 13:43:55 +01:00
storage Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
tests Hidden field can never be required. Skip that validation (#716) 2025-03-12 14:47:06 +08:00
.env.docker GH issue template, docker cache fix, remove docker client entrypoint 2024-09-04 11:19:03 +02:00
.env.example Enhance JWT Token Management and Authentication Flow (#720) 2025-03-10 17:32:17 +08:00
.gitignore Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
_ide_helper_models.php Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
artisan Update Docker Documentation to Address Line Ending Issues for Windows Users 2025-03-21 16:30:59 +01:00
composer.json Reduce docker api image size, fix issues 2024-08-28 15:20:39 +02:00
composer.lock Refactor Docker configuration and development setup 2025-01-29 17:19:36 +01:00
phpunit.xml Email spam security (#641) 2024-12-18 13:16:27 +01:00
pint.json Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
server.php Separated laravel app to its own folder (#540) 2024-08-26 18:24:56 +02:00
vapor.yml Update Vapor deployment configuration 2025-02-15 09:18:27 +00:00