 
 extension AppDelegate {
     
-    func route() {
-        let user = FIRAuth.auth()?.currentUser
+    func updateWindow(forUser user: FIRUser?) {
         saveUserIDToDefault(user: user)
         presentCorrectViewController(user: user)
     }


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

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

    func testSaveAndFetch(_ user: FIRUser) {
