I was looking for User definition. It is a Firebase class, should be this one: https://firebase.google.com/docs/reference/swift/firebaseauth/api/reference/Protocols/UserInfo.html
I suppose error is here:
let updatedUser = User(
coder: <#NSCoder#>,
id: userId,
name: name,
email: email,
phoneNumber: phoneNumber,
profilePictureURL: nil,
bio: bio
)
why do you include coder here ? And what does <#NSCoder#> mean ? Where did you get it ?
I understand you have several init for User:
either with coder
public required convenience init?(coder: NSCoder)
or direct declaration with all the properties.
So, you'd better study carefully FireBaseAuth documentation.