The login operation with sessions enabled calls updateOne, in mongodb, data that does not match the schema is removed. `collection` and `_strategy` are not part of the schema so they need to be reassigned after the user is updated. Adds int test.
The login operation with sessions enabled calls updateOne, in mongodb, data that does not match the schema is removed. `collection` and `_strategy` are not part of the schema so they need to be reassigned after the user is updated. Adds int test.