How to get the session token of a user parse.com in Node

The documentation forParse.User.become()

says that one argument should be passed to the become

session token. Where is this JavaScript API token used officially?

I don't see a call to bind an arbitrary identifier (like a session cookie) to a custom Parse object, so I am assuming it is the same returning a session token using the REST API , and not one created by my own session manager.

So far, I've only seen two ways to get this, a fielduser._sessionToken

, and a field in response to a REST API login call . The first is more convenient for me, since I still do not use the REST API, but it has that drum at the beginning of the name, which indicates a danger. However, I don't see any explicit documentation of either.

+3


source to share


1 answer


If you try to use Parse.User.become, you get an error message that is not memory safe on the server. I found a workaround that uses Parse.User.current (), but you have to call Parse.User.enableUnsafeCurrentUser () first.



0


source







All Articles