-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Where can I get the sessionToken in a Parse.Function ? #5508
Comments
Might |
The issue is really about the missing getSessionToken method in the docs. |
If you tell me where to write this little piece of doc, I can do it. Is it a function comments ? How frequently do you generate the docs ? |
@oallouch Its a function comment in the JS SDK. Use The docs are generate automatically after every PR is submitted |
Great ! I'll give it a shot (for this one and the readPreference thing) |
https://parseplatform.org/Parse-SDK-JS/api/master/Parse.Session.html#getSessionToken that's not what you're looking for? What am I missing? |
It might also work. Line 205 in 3e003ee
. request.user.getSessionToken() : this is the one I can see in the docs. I missed it because the generated html isn't alphabetically sorted ... and because I'm stupid :) . through the Session : this one I don't know where to get (except by querying it) So, from now on, I'll use user.getSessionToken() . Anyway, thank you (a lot) for your clarifications. |
I'm closing this as it seems to be resolved. Feel free to comment if you have any questions and we can re-open this issue. |
Hi,
I can't find in the docs the official way to retrieve the sessionToken from a request object.
I personally use request.query.sessionToken, but I see a lot of user.getSessionToken() in the source (it's not in the docs).
Thx,
Olivier
The text was updated successfully, but these errors were encountered: