You are force unwrapping nil on that line, causing the crash. Remove the ! from FIRAuth.auth()?.currentUser!.