FlowFuse / FlowFuse/flowfuse

Extract check user functionality into boot.service

Open
#6,256 0 comments 0 reactions 0 assignees View on GitHub
area:ff-expert
Dominant language
JavaScript
Stars
400
Forks
89
Avg merge
1d 20h
Merged PRs (30d)
149

Description

Parent issue: #6254

## Description
Extract the check user functionality into the boot.service from the account store's checkState method

## Tasks
- [ ] Extract the check user functionality into the boot.service from the account store's checkState method
- [ ] Include platform hydration as well as boot step
- [ ] Include team hydration as well
- [ ] Add app loading state until boot completed
- [ ] Note: for the time being only check if the user is authenticated if the app is opened in a new tab by the a third party to ensure we have a user before we start the app. This currently causes a double api call because of the same logic being present in the checkState method in the account store. Slowly but surely we'll have to migrate the account store to use this bootstrapper service and extend the platform checks and team hydration to use this service as well.

## Related Issues
- Parent: #6254

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.