Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot logout - got TypeError: user.logOut is not a function #4118

Closed
kraenhansen opened this issue Nov 29, 2021 · 3 comments
Closed

Cannot logout - got TypeError: user.logOut is not a function #4118

kraenhansen opened this issue Nov 29, 2021 · 3 comments
Labels
hermes Bugs and features related to running on the React Native hermes engine Reproduction-Required

Comments

@kraenhansen
Copy link
Member

kraenhansen commented Nov 29, 2021

Have a similar issue here.
Cannot logout - got TypeError: user.logOut is not a function
If I disable hermes & use the latest version of realm, everything works well.

Originally posted by @threefeetcat in https://github.com/realm/realm~~js/discussions/3978#discussioncomment~~1535470

@kraenhansen kraenhansen added the hermes Bugs and features related to running on the React Native hermes engine label Nov 29, 2021
@Meknassih
Copy link

react-native: 0.66.4
realm: 10.20.0-alpha.2

I’m having the same issue : TypeError: undefined is not a function when using user.logOut().
Same thing happens with user.refreshCutomUserData().

I also noticed that user.id is always correct but user.customData is always undefined even though it is enabled in the Authentication settings of the Realm UI.

@fronck
Copy link

fronck commented Feb 17, 2022

@Meknassih Would you be able to provide an example of code that triggers these issues?

@Meknassih
Copy link

Hello @fronck, unfortunately I cannot, I scraped everything and rewrote the logic without Realm. Turned out it wasn’t compatible with React Native + Hermes Javascript Engine at the time.

@sync-by-unito sync-by-unito bot closed this as completed Sep 1, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
hermes Bugs and features related to running on the React Native hermes engine Reproduction-Required
Projects
None yet
Development

No branches or pull requests

3 participants