-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
_linkWith fails to create a session for existing users #5785
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
Comments
Have you tried using MasterKey on _linkWith? |
I'm using the master key
|
I'm unable to reproduce this. Can you write a failing test here? or Post server logs VERBOSE=1 |
these are the logs, let my try to create a failing test, the cloud fn is called: authorize-ids-user
|
How do I config the mongo db uri to enable testing? |
You need to have a mongo running at mongodb://localhost:27017. The test will create/use two databases: parse and parseServerMongoAdapterTestDatabase |
@elios264 In your logs I see a permission denied error. |
that’s the consequence of parse-server not returning a sessionToken, the client app tries to make some requests after linking but fails since linkwith returned no sessionToken |
I was able to reproduce this issue. Calling @acinader @davimacedo Thoughts? |
Yes. I think we should as described here. |
also if you don't want to have to make a breaking change, is there a way to create a session for a user in cloud code? |
this could be a textbook example of opensource bug triage and fixing. wow. |
The label |
Issue Description
_linkWith on an existing user returns user with no sessionToken
Steps to reproduce
1.- have an user in db
2.- fetch it with a query
3.- call _linkWith on it
Expected Results
for the user object to have a sessionToken prop just like new users.
Actual Outcome
_linkWith returns no sessionToken
Environment Setup
Server
Database
OUT]
Logs/Trace
The text was updated successfully, but these errors were encountered: