How to make user stay logged in during tests

It happens due to reset of app with default appium settings on driver start.

Use logic below to make start as you wish