Skip to content
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

Authenticated user #192

Closed
stjarnstrom opened this Issue May 2, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@stjarnstrom
Copy link

stjarnstrom commented May 2, 2016

Using the Facebook oath2 settings I've managed to connect and authenticate with Facebook, but every time I authenticate the same user is added to the DB (using NeDB), with the same id, _id and facebookId — over and over.

As if it's not checking if the user exists.

The app was generated with the feathers generate command, and authentication and the like added using the feathers book documentation.

@marshallswain

This comment has been minimized.

Copy link
Member

marshallswain commented May 2, 2016

This is the normal behavior of NeDB. Here's an example: louischatriot/nedb#410. See the section on persistence for how to clean it up. I originally programmed the adapter to automatically compact every 5 seconds, but I'm not sure what it is setup to do right now.

@marshallswain

This comment has been minimized.

Copy link
Member

marshallswain commented May 2, 2016

Please open an issue for the NeDB adapter. This isn't a problem with the auth plugin.

@marshallswain

This comment has been minimized.

Copy link
Member

marshallswain commented May 2, 2016

And the issue appears to be that the datafile isn't getting compacted often enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.