Skip to content

Parse.User.signUp doesn't pass installationId #536

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

Closed
smassin opened this issue Dec 19, 2017 · 2 comments · Fixed by #1031
Closed

Parse.User.signUp doesn't pass installationId #536

smassin opened this issue Dec 19, 2017 · 2 comments · Fixed by #1031

Comments

@smassin
Copy link

smassin commented Dec 19, 2017

As the title suggests, using

Parse.User.signUp(null, {useMasterKey: true, installationId: '...'})

does not actually pass the installationId.

I spent more time than I probably should tracking down the issue here parse-community/parse-server#3996

The short answer is Parse.User.signUp actually does a ParseObject.save() at its core which does not send an installationId. Inserting the following code just before this line
solves the problem:

if (options.hasOwnProperty('sessionToken') && typeof options.sessionToken === 'string') {

if (options.hasOwnProperty('installationId')) {
  saveOptions.installationId = options.installationId;
}
@samuelantonioli
Copy link
Contributor

@smassin I don't know if this is still a problem. Maybe you can add a PR with a fix for it.

@stale
Copy link

stale bot commented Feb 5, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Feb 5, 2019
@stale stale bot closed this as completed Feb 12, 2019
dplewis added a commit that referenced this issue Dec 11, 2019
Fixes: #536

Parse.User.signUp actually does a ParseObject.save() at its core which does not send an installationId.

This is useful to prevent invalid session token and tests session clean up.
davimacedo pushed a commit that referenced this issue Dec 11, 2019
Fixes: #536

Parse.User.signUp actually does a ParseObject.save() at its core which does not send an installationId.

This is useful to prevent invalid session token and tests session clean up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants