website-www
website-www copied to clipboard
Integration | Join section and new signup flow
Issue
The join section should function after the users have completed their signup flow.
How to identify if the user has incomplete data
A flag of incomplete data is set up in firestore when the user has incomplete data or did not complete the signup flow.
Changes to be made
Filename: Join.js
- Check for sign-in as soon as the user visits the page
- In
window.load
check for self-API and check for the incomplete user details flag
Solution
- If the user comes directly to the join section, Check if the user is logged in.
- Once the user is logged in, check for the incomplete data flag from his self-API call
- In case the user is not logged in ask them to log in
- If the user is logged in but the incomplete data flag is true redirect them to the new/old signup flow
- once the signup flow is completed re-direct the user to the join section for them to enter their joining data
Flow diagram
How will this help?
If the user is not logged in we can not fetch his/her First Name, Last Name, and User Id thus user won't be able to save his/her joining data.