Closed tatsuyamoriguchi closed 1 month ago
Was forgetting to uncomment "AuthenticationManager.isLoggedIn = true"
do {
try Keychain.save(email: email, password: password)
**AuthenticationManager.isLoggedIn = true**
print("User registred with email: \(email) and password: \(password)")
} catch {
AuthenticationManager.isLoggedIn = false
print("Error saving user credentials: \(error.localizedDescription)")
}
return AuthenticationManager.isLoggedIn
"User registered with email: test1@test.com and password: test1" indicated the registration was completed. Why am I getting "Issue in AuthenticationManager.shared.register(email: email, password: password, confirmPassword)" error?