check if api_subdomain, domain are invalid or missing.
if anything is invalid, clear the storage and go to login screen.
Backend needs an extra endpoint for multiple tenant (in addition to sign_in). A single polymorphic (forgiving) function that takes email, or parsed stuff (subdomain) from url (web).
for mobile, mandate email. Since url UI is absent.
works for user 1-N tenants too. Show tenant choosing screen.
// States (4) // Login <--> Reopen app <--> appInInvalidState? <--> Logout <--> Login
Holds for any spa. The above being multi tenant.