Skip login screen when session is stored in cookie

When hitting the loginasync endpoint (.NET), the login page gets opened every time, but if the token stored in the browser’s cookies is valid, the page immediately closes. Is there a way to prevent that login page from opening so that it won’t flash the screen? This same result happens on all the devices we’re developing for (Android, iOS, and Windows).