This PR resolves a race condition error at the end of company sign up. After a new user's company has been registered the frontend tries to fetch the enabled plugins. However, at this point the user isn't logged in yet, so the request fails.
Moving the call to after auth/authenticate fixes the issue. It remains a mystery how this ever worked.
Are there any other side effects of this change that we should be aware of?
N/A
Describe how you tested your changes?
docker compose up
Pull Request checklist
Please confirm you have completed any of the necessary steps below.
[ ] Meaningful Pull Request title and description
[ ] Changes tested as described above
[ ] Added appropriate documentation for the change.
[ ] Created GitHub issues for any relevant followup/future enhancements if appropriate.
Brief summary of the change made
This PR resolves a race condition error at the end of company sign up. After a new user's company has been registered the frontend tries to fetch the enabled plugins. However, at this point the user isn't logged in yet, so the request fails.
Moving the call to after
auth/authenticate
fixes the issue. It remains a mystery how this ever worked.Are there any other side effects of this change that we should be aware of?
N/A
Describe how you tested your changes?
Pull Request checklist
Please confirm you have completed any of the necessary steps below.