Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Authenticated user #192

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

Authenticated user #192

stjarnstrom opened this issue May 2, 2016 · 3 comments

Comments

@stjarnstrom
Copy link

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
Copy link
Member

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
Copy link
Member

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

@marshallswain
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants