 extension AppDelegate: AuthDelegate {
     func didLogin(_ user: FIRUser) {
         testSaveAndFetch(user)
-        route()
+        updateWindow(forUser: FIRAuth.auth()?.currentUser)
     }
 
     func testSaveAndFetch(_ user: FIRUser) {


extension AppDelegate {
    
    func route() {
        let user = FIRAuth.auth()?.currentUser
        saveUserIDToDefault(user: user)
        presentCorrectViewController(user: user)
    }


    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        FIRApp.configure()
        updateWindow(forUser: FIRAuth.auth()?.currentUser)
        return true
    }
    
