Both hybrid sample apps working / catching redirect to login page / still need to work out edge cases