When I close the application, after open the sessions are lost and the logged user is without authorization.
import SystemConfiguration import UIKit import We