Hi @thepracticaldev , I'd love some help from the MongoDB team or anyone who has come across this. I have a realm app with email/password authentication enabled and I have a react native app that does sign up and sign in.
When using the sign in method from the realm library:
when I console log the user I get an empty object { } but when I call user.id I get the id of the user object. I'm not entirely sure what I have done wrong but I think this is causing further errors because I am getting an error when I try to open a realm connection with this user.
Any help would be great.
For more technical questions, you might want to try to search or post on our community forums (mongodb.com/community/forums/), you will normally get a quicker answer there. As for your question, you could try creating an object that contains your application, and then use the methods for this application. Right now, I’m not sure if your Realm.app is an initialized property. You could try this out:
Hi @thepracticaldev , I'd love some help from the MongoDB team or anyone who has come across this. I have a realm app with email/password authentication enabled and I have a react native app that does sign up and sign in.
When using the sign in method from the realm library:
when I console log the user I get an empty object { } but when I call user.id I get the id of the user object. I'm not entirely sure what I have done wrong but I think this is causing further errors because I am getting an error when I try to open a realm connection with this user.
Any help would be great.
Hi,
For more technical questions, you might want to try to search or post on our community forums (mongodb.com/community/forums/), you will normally get a quicker answer there. As for your question, you could try creating an object that contains your application, and then use the methods for this application. Right now, I’m not sure if your Realm.app is an initialized property. You could try this out:
I hope this helps!