Hi All,
We have 2 questions about the session object.
We are using React Moralis. Using this library:
- How can we update the current session object for the user. Where when we add a new prop to the session it appears in the database dashboard under “_session” and persists if the user reloads the page.
In this doc it says " Session
is a subclass of a Moralis Object
, so you can query, update, and delete sessions in the same way that you manipulate normal objects on Moralis."
https://docs.moralis.io/moralis-dapp/users/sessions
But we cant seem to find the way to do this via the React Moralis. We see useNewMoralisObject
and setUserData
but cant seem to find a way to manage the session.
- Also, how can we get the current session object in React Moralis?
Thanks very much all