-
-
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
Querying User with master key is not returning session token #2764
Comments
Can you remove the X-Parse-REST-API-Key header and try again? |
Still the same issue. |
The issue should have been fixed in 2.2.17, can you double check the Parse Server version you're using? |
I checked again I am using
Also Require revocable sessions is set to Yes on parse dashboard. |
Any one tried to recheck this issue yet? Is it in new version as well or only I am facing this issue? |
How does this work on parse.com with revocable sessions? I recommend in your dependencies that you use an exact version of parse-server - this will clarify in which version the bug occurs and also you won't get any surprises when a new version is released. |
How do check the exact version of parse-server being used?
|
'Current' shows that 2.2.18 is currently being used but if you deploy to heroku or do npm install then you will get 2.2.22 which could lead to unpredictable behaviour. If you change your dependency to:
Then do npm install or deploy then you will always be on 2.2.22. I usually match my parse version to whatever parse-server uses, which can be seen in the parse-server package.json If you want to see which version heroku is using then look at the Build Log on the Activity tab. |
You are right.It seems to be a good practice which should be followed. Using this at least we can be certain about which version is being used. |
I've been wrestling for a few days with getting LiveQuery to work properly within my React Native app. After reading the docs again, I was under the impression that it would only work for apps using JS SDK below 1.9. It seems as if my config is proper:
However, I keep getting 'error on socket' when I create a subscription. Any idea why I am unable to connect successfully? |
I have the same problem on parse-server 3.1.3
returns always indefined I also tried to fetch the user with the master key and passing { useMasterKey: true } to getSessionToken() |
Has anyone found a solution for this? I am trying to retrieve a user's session token in the exact same manner as @Pietro89 but it always returns undefined. In cloud code, I need to be able to query objects a user is associated with, so, unless I'm mistaken, I need access to their session token. If I am mistaken, how would I go about retrieving objects this user has ACL access to from a specific table? The user won't always be the owner of the object, so I need another way to get these objects. |
Running a cloned repository from parse server example.
https://github.com/ParsePlatform/parse-server-example
I am try to fetch the session token associated with an existing user using master key.
I am providing a user parameter such as email and want to fetch that user with its session token.
My problem is that I am not able to get session token with the user object received. I tried a lot but couldn't figure out what is the problem.
Server setup:
Steps to reproduce:
Deploy Parse-Server to Heroku.
send curl request
or
Expected Results
The code should run and data related to user along with session token should be present.
Actual Outcome
Data related to user is fetched but without sessionToken associated with user.
There is no sessionToken present.
Environment Setup
Server
express: "^4.14.0",
parse: "^1.9.1",
parse-server: "^2.2.18"
Operating System: Mac Os
Hardware: MacBook Pro
Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): Heroku
Database
MongoDB version: 3.0.12
Storage engine: AWS us-east-1
Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): mLab
The text was updated successfully, but these errors were encountered: