Hie @vishsahu
I am trying to set up a system where there is a way checking the status of a user in order to be able to send them to the correct page or show them the right modal… Instead of routing logic being scattered everywhere in the app, every incomplete user registration can be sent here. e.g. This page checks:
- profile complete?
- role selected?
- verification needed?
- verification pending?
- approved?
- what is next?
So this is the page that will decide: e.g. - go finish registration
- go submit verification
- wait for approval
- enter dashboard
So what I am looking at is how to make such a page contain the different logic to achieve what i have just mentioned and more. This way i can just dedicate time to placing conditions that check each user as they log in. I will send them to this page, the user wont see it but the page will land them on the right page or resume a flow…
Thanks