Skip to content

React Native createUserInFirestore => Error: Unsupported field value: undefined #36

@magital-gmbh

Description

@magital-gmbh

While running createUserInFirestore with minimum setup given from https://docs.flyer.chat/react-native/firebase/firebase-usage
{
firstName: 'John',
id: credential.user.uid, // UID from Firebase Authentication
imageUrl: 'https://i.pravatar.cc/300',
lastName: 'Doe',
}

getting Error: Error: Unsupported field value: undefined

while setting all data:
{
firstName: userData?.fullname,
id: UID,
imageUrl: userData?.imagePath,
lastName: ' ',
metadata: ' ',
lastSeen: firebaseCurrentUser?.metadata?.lastSignInTime,
role : userRole
}

the await will never ends and i didn't get response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions