-
-
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
duplicate rows in Session when using Parse.User.logInWith #2885
Comments
Thanks for the detailed report! We'll look into the issue when we have some time. Otherwise, if you feel like it, you can propose a fix. |
@alexmnguyen I managed to find some time to isolate and fix the issue. should be available in next release! |
This was referenced Jul 17, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description
When I sign in successfully with oauth, a new object in Session is always created and createdWith.action is always "signup". The user and installationId are identical among all the objects. I would expect the duplicate user and installationId pairs to not be present, based on the following documentation:
Furthermore, I would expect the action to be 'login' rather than 'signup' every time. The sessionToken is unique among each of the rows. Below is a screenshot from parse-dashboard for Session:
Steps to reproduce
Obtain google oauth credentials for id and auth_token.
Create a payload for authData:
use the logInWith function and use the built in 'google' provider:
Repeat this steps 1 - 3 multiple times. For example, 5 times.
Expected Results
There should only be one Session object for this user and installationId combination. The createdWith.action property should be 'login' and not 'signup'.
Actual Outcome
If the
Steps to reproduce
were run 5 times, there would be 5 new objects in Session, 4 of which should not exist according to the documentation. The createdWith.action property will also be 'signup' for all of them.Environment Setup
Logs/Trace
You can turn on additional logging by configuring VERBOSE=1 in your environment.
This is the output when I attempt to sign in with VERBOSE=1. I've replaced the actual profile id, access_token and session string with variables.
The text was updated successfully, but these errors were encountered: